[webkit-changes] [WebKit/WebKit] 8cee0c: Selector filter fails to collect hash for the firs...
Antti Koivisto
noreply at github.com
Fri Jan 20 09:32:31 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8cee0c833695781b97e2aaee74936aaba2e203cb
https://github.com/WebKit/WebKit/commit/8cee0c833695781b97e2aaee74936aaba2e203cb
Author: Antti Koivisto <antti at apple.com>
Date: 2023-01-20 (Fri, 20 Jan 2023)
Changed paths:
A LayoutTests/fast/selectors/selector-filter-hashes-expected.txt
A LayoutTests/fast/selectors/selector-filter-hashes.html
M Source/WebCore/css/CSSSelector.h
M Source/WebCore/css/SelectorFilter.cpp
M Source/WebCore/css/SelectorFilter.h
M Source/WebCore/css/parser/CSSParser.h
M Source/WebCore/testing/Internals.cpp
M Source/WebCore/testing/Internals.h
M Source/WebCore/testing/Internals.idl
Log Message:
-----------
Selector filter fails to collect hash for the first simple selector in :is()
https://bugs.webkit.org/show_bug.cgi?id=250889
<rdar://problem/104469871>
Reviewed by Alan Baradlay.
Logic bug in https://commits.webkit.org/259089@main
Add testing support for selector filter hash collection and a basic unit test.
* LayoutTests/fast/selectors/selector-filter-hashes-expected.txt: Added.
* LayoutTests/fast/selectors/selector-filter-hashes.html: Added.
* Source/WebCore/css/CSSSelector.h:
* Source/WebCore/css/SelectorFilter.cpp:
(WebCore::SelectorFilter::collectSelectorHashes):
Collect from the first simple selector too when IncludeRightmost::Yes is set.
(WebCore::SelectorFilter::collectHashesForTesting):
* Source/WebCore/css/SelectorFilter.h:
* Source/WebCore/css/parser/CSSParser.h:
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::selectorFilterHashCounts):
* Source/WebCore/testing/Internals.h:
* Source/WebCore/testing/Internals.idl:
Canonical link: https://commits.webkit.org/259144@main
More information about the webkit-changes
mailing list