mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibWeb: Rename offset to cumulative_offset in ScrollFrame
New name reflects that offset is not just a frame's own offset but a sum of offsets from containing block chain.
This commit is contained in:
parent
a59a839df8
commit
7ddb94c4d6
Notes:
github-actions[bot]
2024-08-19 16:58:27 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 7ddb94c4d6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1106
9 changed files with 15 additions and 15 deletions
|
@ -2131,7 +2131,7 @@ RefPtr<Painting::DisplayList> Navigable::record_display_list(PaintConfig config)
|
|||
Vector<Gfx::IntPoint> scroll_offsets_by_frame_id;
|
||||
scroll_offsets_by_frame_id.resize(viewport_paintable.scroll_state.size());
|
||||
for (auto [_, scrollable_frame] : viewport_paintable.scroll_state) {
|
||||
auto scroll_offset = context.rounded_device_point(scrollable_frame->offset).to_type<int>();
|
||||
auto scroll_offset = context.rounded_device_point(scrollable_frame->cumulative_offset).to_type<int>();
|
||||
scroll_offsets_by_frame_id[scrollable_frame->id] = scroll_offset;
|
||||
}
|
||||
display_list_recorder.display_list().apply_scroll_offsets(scroll_offsets_by_frame_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue