[webkit-changes] [WebKit/WebKit] 7e9736: Add RuleSet bucket for :root selector
Tim Nguyen
noreply at github.com
Wed Mar 27 11:44:08 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7e97360f5f11b833dd9108c492564c740b127f9d
https://github.com/WebKit/WebKit/commit/7e97360f5f11b833dd9108c492564c740b127f9d
Author: Tim Nguyen <ntim at apple.com>
Date: 2024-03-27 (Wed, 27 Mar 2024)
Changed paths:
M Source/WebCore/style/ElementRuleCollector.cpp
M Source/WebCore/style/RuleSet.cpp
M Source/WebCore/style/RuleSet.h
Log Message:
-----------
Add RuleSet bucket for :root selector
https://bugs.webkit.org/show_bug.cgi?id=271713
rdar://125423936
Reviewed by Antti Koivisto.
Optimize :root selector by making it go in its own bucket instead of using the universal bucket.
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::collectMatchingRules):
* Source/WebCore/style/RuleSet.cpp:
(WebCore::Style::RuleSet::addRule):
(WebCore::Style::RuleSet::traverseRuleDatas):
(WebCore::Style::RuleSet::shrinkToFit):
* Source/WebCore/style/RuleSet.h:
(WebCore::Style::RuleSet::rootElementRules const):
Canonical link: https://commits.webkit.org/276744@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list