mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Don't store custom name on StyleProperty
This reduces time spent in `~StyleProperty()` from 2.18% to 0.67% on https://cloudflare.com.
This commit is contained in:
parent
eb21ea890c
commit
df23b42b37
Notes:
github-actions[bot]
2025-11-12 10:20:48 +00:00
Author: https://github.com/tcl3
Commit: df23b42b37
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6796
Reviewed-by: https://github.com/gmta ✅
6 changed files with 24 additions and 18 deletions
|
|
@ -3098,7 +3098,6 @@ void StyleComputer::compute_custom_properties(ComputedProperties&, DOM::Abstract
|
|||
.important = style_property.important,
|
||||
.property_id = style_property.property_id,
|
||||
.value = compute_value_of_custom_property(abstract_element, name),
|
||||
.custom_name = style_property.custom_name,
|
||||
});
|
||||
}
|
||||
abstract_element.set_custom_properties(move(resolved_custom_properties));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue