[webkit-changes] [WebKit/WebKit] 20329b: CSS Nesting: support top-level & selector
Matthieu Dubet
noreply at github.com
Thu Mar 16 03:40:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 20329b62061b40d5a423a1d75b67779945b84729
https://github.com/WebKit/WebKit/commit/20329b62061b40d5a423a1d75b67779945b84729
Author: Matthieu Dubet <m_dubet at apple.com>
Date: 2023-03-16 (Thu, 16 Mar 2023)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/invalidation-004-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/supports-rule-expected.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/supports-rule-ref.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/supports-rule.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/top-level-is-scope-expected.txt
M Source/WebCore/css/CSSSelector.cpp
M Source/WebCore/css/CSSSelector.h
M Source/WebCore/css/CSSStyleRule.cpp
M Source/WebCore/css/parser/CSSSelectorParser.cpp
M Source/WebCore/dom/SelectorQuery.cpp
M Source/WebCore/style/RuleSetBuilder.cpp
Log Message:
-----------
CSS Nesting: support top-level & selector
https://bugs.webkit.org/show_bug.cgi?id=250379
rdar://104073866
Reviewed by Antti Koivisto.
Replaces any top-level & selector by the :scope pseudo class.
* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/invalidation-004-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/supports-rule-expected.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/supports-rule-ref.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/supports-rule.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-nesting/top-level-is-scope-expected.txt:
* Source/WebCore/css/CSSSelector.cpp:
(WebCore::CSSSelector::replaceNestingParentByPseudoClassScope):
(WebCore::CSSSelector::replaceNestingParentByNotAll): Deleted.
* Source/WebCore/css/CSSSelector.h:
* Source/WebCore/css/CSSStyleRule.cpp:
(WebCore::CSSStyleRule::setSelectorText):
* Source/WebCore/css/parser/CSSSelectorParser.cpp:
(WebCore::CSSSelectorParser::consumeSimpleSelector):
(WebCore::CSSSelectorParser::resolveNestingParent):
* Source/WebCore/dom/SelectorQuery.cpp:
* Source/WebCore/style/RuleSetBuilder.cpp:
(WebCore::Style::RuleSetBuilder::populateStyleRuleResolvedSelectorList):
Canonical link: https://commits.webkit.org/261739@main
More information about the webkit-changes
mailing list