mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
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:
committed by
Andreas Kling
parent
814bed33b4
commit
7c2713c14f
@@ -1005,8 +1005,8 @@ void HTMLImageElement::animate()
|
||||
}
|
||||
}
|
||||
|
||||
if (layout_node())
|
||||
layout_node()->set_needs_display();
|
||||
if (paintable())
|
||||
paintable()->set_needs_display();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user