Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 53d2448abd70c781f7a99e96fd24cbf5001fd271
https://github.com/WebKit/WebKit/commit/53d2448abd70c781f7a99e96fd24cbf5001fd271
Author: Chris Dumez <[email protected]>
Date: 2026-01-11 (Sun, 11 Jan 2026)
Changed paths:
M Source/WTF/wtf/FixedVector.h
M Source/WebCore/css/CSSSelectorList.h
M Source/WebCore/html/track/WebVTTParser.cpp
M Source/WebCore/style/ElementRuleCollector.cpp
M Source/WebCore/style/RuleData.cpp
M Source/WebCore/style/RuleData.h
M Source/WebCore/style/RuleFeature.cpp
M Source/WebCore/style/RuleSet.cpp
M Source/WebCore/style/RuleSetBuilder.cpp
Log Message:
-----------
Update CSSSelectorList::selectorAt() to return a C++ reference
https://bugs.webkit.org/show_bug.cgi?id=305180
Reviewed by Darin Adler and Sam Weinig.
Update CSSSelectorList::selectorAt() to return a C++ reference instead
of a raw pointer.
* Source/WTF/wtf/FixedVector.h:
(WTF::FixedVector::offsetFromStart const):
* Source/WebCore/css/CSSSelectorList.h:
(WebCore::CSSSelectorList::indexOfSelector const):
(WebCore::CSSSelectorList::indexOfNextSelectorAfter const): Deleted.
* Source/WebCore/html/track/WebVTTParser.cpp:
(WebCore::WebVTTParser::checkAndStoreStyleSheet):
* Source/WebCore/style/ElementRuleCollector.cpp:
(WebCore::Style::ElementRuleCollector::ruleMatches):
(WebCore::Style::ElementRuleCollector::containerQueriesMatch):
* Source/WebCore/style/RuleData.cpp:
(WebCore::Style::determinePropertyAllowlist):
(WebCore::Style::RuleData::RuleData):
* Source/WebCore/style/RuleData.h:
(WebCore::Style::RuleData::selector const):
* Source/WebCore/style/RuleFeature.cpp:
(WebCore::Style::RuleAndSelector::selector const):
(WebCore::Style::RuleFeatureSet::collectFeatures):
(WebCore::Style::RuleFeatureSet::collectPseudoElementFeatures):
* Source/WebCore/style/RuleSet.cpp:
(WebCore::Style::RuleSet::addRule):
(WebCore::Style::RuleSet::selectorsForDebugging const):
* Source/WebCore/style/RuleSetBuilder.cpp:
(WebCore::Style::RuleSetBuilder::addStyleRuleWithSelectorList):
Canonical link: https://commits.webkit.org/305435@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications