mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Change viewport ownership from BrowsingContext
to Navigable
This commit is contained in:
parent
4356d37b2c
commit
dd7bba66ed
Notes:
sideshowbarker
2024-07-17 01:13:25 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: dd7bba66ed
Pull-request: https://github.com/SerenityOS/serenity/pull/18219
23 changed files with 196 additions and 129 deletions
|
@ -129,7 +129,7 @@ void paint_background(PaintContext& context, Layout::NodeWithStyleAndBoxModelMet
|
|||
// Attachment and Origin
|
||||
switch (layer.attachment) {
|
||||
case CSS::BackgroundAttachment::Fixed:
|
||||
background_positioning_area = layout_node.root().browsing_context().viewport_rect();
|
||||
background_positioning_area = layout_node.root().navigable()->viewport_rect();
|
||||
break;
|
||||
case CSS::BackgroundAttachment::Local:
|
||||
background_positioning_area = get_box(layer.origin).rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue