mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00: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
Notes:
github-actions[bot]
2025-02-17 23:25:48 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 1e07227e98
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3604
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue