mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Make CSSStyleRule::qualified_layer_name() return a const-ref
And also make it inline. We were spending 8% of selector matching on creating and destroying FlyString copies here. With this change, it's now ~1%.
This commit is contained in:
parent
ef4f5ac8fb
commit
b2aff403fc
Notes:
github-actions[bot]
2024-09-09 18:13:00 +00:00
Author: https://github.com/awesomekling
Commit: b2aff403fc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1345
4 changed files with 34 additions and 34 deletions
|
@ -46,11 +46,6 @@ CSSStyleDeclaration* CSSStyleRule::style()
|
|||
return m_declaration;
|
||||
}
|
||||
|
||||
FlyString CSSStyleRule::qualified_layer_name() const
|
||||
{
|
||||
return parent_layer_internal_qualified_name();
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom/#serialize-a-css-rule
|
||||
String CSSStyleRule::serialized() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue