mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Move m_needs_repaint and record_display_list() in Document
Let's make document responsible for display list invalidation, considering it already takes care of style and layout.
This commit is contained in:
committed by
Andreas Kling
parent
ab76b99f1e
commit
69c6e07139
@@ -907,10 +907,9 @@ TraversalDecision PaintableWithLines::hit_test(CSSPixelPoint position, HitTestTy
|
||||
return TraversalDecision::Continue;
|
||||
}
|
||||
|
||||
void PaintableBox::set_needs_display() const
|
||||
void PaintableBox::set_needs_display()
|
||||
{
|
||||
if (auto navigable = this->navigable())
|
||||
navigable->set_needs_display(absolute_rect());
|
||||
document().set_needs_display(absolute_rect());
|
||||
}
|
||||
|
||||
Optional<CSSPixelRect> PaintableBox::get_masking_area() const
|
||||
|
||||
Reference in New Issue
Block a user