mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Make CSSRule::type() non-virtual
All its overrides return constants, and without virtual dispatch the `qualified_layer_name` and `absolutized_selectors` functions can benefit from slightly better optimizations. `CSSRule`s aren't allocated that often, so the memory impact is minimal.
This commit is contained in:
committed by
Andreas Kling
parent
2f41be733f
commit
5c1bbd3eff
@@ -11,8 +11,8 @@
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
CSSConditionRule::CSSConditionRule(JS::Realm& realm, CSSRuleList& rules)
|
||||
: CSSGroupingRule(realm, rules)
|
||||
CSSConditionRule::CSSConditionRule(JS::Realm& realm, CSSRuleList& rules, Type type)
|
||||
: CSSGroupingRule(realm, rules, type)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user