mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +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
|
|
@ -13,7 +13,7 @@ StyleProperty::~StyleProperty() = default;
|
|||
|
||||
bool StyleProperty::operator==(StyleProperty const& other) const
|
||||
{
|
||||
if (important != other.important || property_id != other.property_id || custom_name != other.custom_name)
|
||||
if (important != other.important || property_id != other.property_id)
|
||||
return false;
|
||||
return value->equals(*other.value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue