mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb+WebContent: Convert BrowsingContext to new pixel units
This fixes a few glitches. We no longer give the page double the width it should have, and we mark the correct area of the page as needing repainting.
This commit is contained in:
@@ -158,7 +158,7 @@ void Node::set_needs_display()
|
||||
return;
|
||||
containing_block->paint_box()->for_each_fragment([&](auto& fragment) {
|
||||
if (&fragment.layout_node() == this || is_ancestor_of(fragment.layout_node())) {
|
||||
browsing_context().set_needs_display(fragment.absolute_rect().template to_type<float>().template to_type<int>());
|
||||
browsing_context().set_needs_display(fragment.absolute_rect());
|
||||
}
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user