mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Early return when invalidations=none in inherited style update
This allows to skip a bunch of unnecessary work performed by `apply_style()`.
This commit is contained in:
parent
e5b4fe2c65
commit
1e07227e98
|
|
@ -616,6 +616,9 @@ CSS::RequiredInvalidationAfterStyleChange Element::recompute_inherited_style()
|
|||
invalidation |= CSS::compute_property_invalidation(property_id, old_value, new_value);
|
||||
}
|
||||
|
||||
if (invalidation.is_none())
|
||||
return invalidation;
|
||||
|
||||
document().style_computer().compute_font(*computed_properties, this, {});
|
||||
document().style_computer().absolutize_values(*computed_properties);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user