Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2d31810f4477543bc3dabf55d4cb64cbec0c6dd6
https://github.com/WebKit/WebKit/commit/2d31810f4477543bc3dabf55d4cb64cbec0c6dd6
Author: Antti Koivisto <[email protected]>
Date: 2026-01-31 (Sat, 31 Jan 2026)
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 fullscreen rules
https://bugs.webkit.org/show_bug.cgi?id=306614
rdar://169270208
Reviewed by Tim Nguyen.
Fullscreen pseduo-class rules can't match unless we are in fullscreen state.
Some of these exist in the user-agent stylesheet so they are worth optimizing.
* 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::fullscreenPseudoClassRules const):
Canonical link: https://commits.webkit.org/306577@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications