Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fa091dcc95457b382d308130f8bc6757559229f6
https://github.com/WebKit/WebKit/commit/fa091dcc95457b382d308130f8bc6757559229f6
Author: Chris Dumez <[email protected]>
Date: 2026-01-08 (Thu, 08 Jan 2026)
Changed paths:
M Source/WebCore/css/CSSSelectorList.cpp
M Source/WebCore/css/CSSSelectorList.h
M Source/WebCore/css/SelectorChecker.cpp
M Source/WebCore/css/SelectorFilter.cpp
M Source/WebCore/css/StyleRule.h
M Source/WebCore/css/parser/CSSSelectorParser.cpp
M Source/WebCore/dom/SelectorQuery.cpp
M Source/WebCore/dom/SelectorQuery.h
M Source/WebCore/html/track/WebVTTParser.cpp
Log Message:
-----------
Use FixedVector instead of Vector in SelectorQuery For SelectorData objects
https://bugs.webkit.org/show_bug.cgi?id=305095
Reviewed by Ryosuke Niwa.
Use FixedVector instead of Vector in SelectorQuery For SelectorData objects.
We don't need the modify the Vector here. Also use FixedVector::map() to
simplify the code a bit (This required me to rename CSSSelectorList::listSize()
to CSSSelectorList::size() so that it would work with std::size()).
This tested as performance neutral on Speedometer.
* Source/WebCore/css/CSSSelectorList.cpp:
(WebCore::CSSSelectorList::size const):
(WebCore::CSSSelectorList::listSize const): Deleted.
* Source/WebCore/css/CSSSelectorList.h:
* Source/WebCore/css/SelectorChecker.cpp:
(WebCore::SelectorChecker::matchHostPseudoClass const):
* Source/WebCore/css/SelectorFilter.cpp:
(WebCore::SelectorFilter::collectSimpleSelectorHash):
* Source/WebCore/css/StyleRule.h:
(WebCore::StyleRule::compiledSelectorForListIndex const):
* Source/WebCore/css/parser/CSSSelectorParser.cpp:
(WebCore::CSSSelectorParser::resolveNestingParent):
* Source/WebCore/dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::SelectorDataList):
* Source/WebCore/dom/SelectorQuery.h:
* Source/WebCore/html/track/WebVTTParser.cpp:
(WebCore::WebVTTParser::checkAndStoreStyleSheet):
Canonical link: https://commits.webkit.org/305258@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications