LibWeb: Move set_needs_display() from layout node to paintable

For this method, there is no need to go through the layout node when we
can directly reach the paintable.
This commit is contained in:
Aliaksandr Kalenik 2024-01-14 13:46:52 +01:00 committed by Andreas Kling
commit 7c2713c14f
Notes: sideshowbarker 2024-07-17 00:53:02 +09:00
21 changed files with 97 additions and 87 deletions

View file

@ -1005,8 +1005,8 @@ void HTMLImageElement::animate()
}
}
if (layout_node())
layout_node()->set_needs_display();
if (paintable())
paintable()->set_needs_display();
}
}