mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibWeb: Move paint properties invalidation flag into Document
Move paint-only properties invalidation flag to Document for consistency, as style and layout invalidation flags are already managed there.
This commit is contained in:
parent
9bccb8c8d7
commit
fc40d35012
5 changed files with 19 additions and 14 deletions
|
@ -593,8 +593,8 @@ Element::RequiredInvalidationAfterStyleChange Element::recompute_style()
|
|||
m_computed_css_values = move(new_computed_css_values);
|
||||
computed_css_values_changed();
|
||||
|
||||
if (invalidation.repaint && document().navigable())
|
||||
document().navigable()->set_needs_to_resolve_paint_only_properties();
|
||||
if (invalidation.repaint)
|
||||
document().set_needs_to_resolve_paint_only_properties();
|
||||
|
||||
if (!invalidation.rebuild_layout_tree && layout_node()) {
|
||||
// If we're keeping the layout tree, we can just apply the new style to the existing layout tree.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue