[webkit-changes] [WebKit/WebKit] d1418b: [view-transitions] Support chaining `:only-child` ...
Tim Nguyen
noreply at github.com
Fri Mar 8 09:39:46 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d1418bf98d34738599cef6f5f77255c3174f6a8f
https://github.com/WebKit/WebKit/commit/d1418bf98d34738599cef6f5f77255c3174f6a8f
Author: Tim Nguyen <ntim at apple.com>
Date: 2024-03-08 (Fri, 08 Mar 2024)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-group-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-group.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-image-pair-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-image-pair.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-new-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-new.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-no-transition.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-old-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-old.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/parsing/pseudo-elements-valid-expected.txt
M Source/WebCore/css/SelectorChecker.cpp
M Source/WebCore/css/SelectorChecker.h
M Source/WebCore/css/parser/CSSSelectorParser.cpp
M Source/WebCore/dom/ViewTransition.h
M Source/WebCore/rendering/updating/RenderTreeUpdaterViewTransition.cpp
Log Message:
-----------
[view-transitions] Support chaining `:only-child` after pseudo-elements
https://bugs.webkit.org/show_bug.cgi?id=265223
rdar://118703154
Reviewed by Antti Koivisto.
::view-transition-group(name):only-child matches a group with no siblings.
::view-transition-image-pair(name):only-child should always match, since there is only one image-pair.
::view-transition-old(name):only-child matches an old capture with no associated new element.
::view-transition-new(name):only-child matches a new element with no associated old capture.
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-group-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-group.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-image-pair-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-image-pair.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-new-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-new.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-no-transition.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-old-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/only-child-old.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/parsing/pseudo-elements-valid-expected.txt:
* Source/WebCore/css/SelectorChecker.cpp:
(WebCore::SelectorChecker::LocalContext::LocalContext):
(WebCore::SelectorChecker::match const):
(WebCore::SelectorChecker::matchHostPseudoClass const):
(WebCore::hasViewTransitionPseudoElement):
(WebCore::SelectorChecker::matchRecursively const):
(WebCore::SelectorChecker::checkOne const):
(WebCore::SelectorChecker::matchHasPseudoClass const):
(WebCore::SelectorChecker::checkViewTransitionPseudoClass const):
* Source/WebCore/css/SelectorChecker.h:
* Source/WebCore/css/parser/CSSSelectorParser.cpp:
(WebCore::isPseudoClassValidAfterPseudoElement):
* Source/WebCore/dom/ViewTransition.h:
(WebCore::OrderedNamedElementsMap::size const):
(WebCore::OrderedNamedElementsMap::find const):
* Source/WebCore/rendering/updating/RenderTreeUpdaterViewTransition.cpp:
(WebCore::createRendererIfNeeded):
Canonical link: https://commits.webkit.org/275841@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list