-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[view-transitions] Create renderers for pseudo-elements #21205
[view-transitions] Create renderers for pseudo-elements #21205
Conversation
EWS run on previous version of this PR (hash 029cd94) |
029cd94
to
d3bc15f
Compare
EWS run on previous version of this PR (hash d3bc15f) |
d3bc15f
to
dcaa726
Compare
EWS run on previous version of this PR (hash dcaa726) |
dcaa726
to
855abc2
Compare
EWS run on previous version of this PR (hash 855abc2) |
855abc2
to
b1fe042
Compare
EWS run on previous version of this PR (hash b1fe042) |
b1fe042
to
00b8069
Compare
EWS run on previous version of this PR (hash 00b8069) |
00b8069
to
b44c397
Compare
EWS run on previous version of this PR (hash b44c397) |
b44c397
to
59c12fb
Compare
EWS run on previous version of this PR (hash 59c12fb) |
Source/WebCore/rendering/updating/RenderTreeUpdaterViewTransition.cpp
Outdated
Show resolved
Hide resolved
af2f08f
to
2aac209
Compare
EWS run on previous version of this PR (hash 2aac209) |
|
||
// The contents and ordering of the named elements map should remain stable during the duration of the transition. | ||
// We should only need to handle changes in the `display` CSS property by recreating / deleting renderers as needed. | ||
void RenderTreeUpdater::ViewTransition::updatePseudoElementTree(RenderElement& documentElementRenderer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a good test coverage for mutations? You should ensure these pseudo elements are added to the fuzzers soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WPTs cover mutations to some extent, but right now proper rendering test coverage can't be done until we hook this up to animation timing because pseudo-elements won't appear for long enough (this is what I'm planning to look into next).
2aac209
to
12c13b1
Compare
EWS run on previous version of this PR (hash 12c13b1) |
12c13b1
to
e3af7cd
Compare
EWS run on previous version of this PR (hash e3af7cd) |
e3af7cd
to
90c4be6
Compare
EWS run on previous version of this PR (hash 90c4be6) |
90c4be6
to
d8f1e9a
Compare
d8f1e9a
to
3ba2672
Compare
EWS run on current version of this PR (hash 3ba2672)
|
https://bugs.webkit.org/show_bug.cgi?id=265168 rdar://118667022 Reviewed by Antti Koivisto. Use the named elements map as input to build the pseudo element tree. * Source/WebCore/Sources.txt: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/dom/ViewTransition.h: (WebCore::OrderedNamedElementsMap::isEmpty const): * Source/WebCore/rendering/RenderView.cpp: (WebCore::RenderView::viewTransitionRoot const): (WebCore::RenderView::setViewTransitionRoot): * Source/WebCore/rendering/RenderView.h: * Source/WebCore/rendering/style/RenderStyle.h: * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::functionalPseudoElementArgument const): * Source/WebCore/rendering/style/RenderStyleSetters.h: (WebCore::RenderStyle::setFunctionalPseudoElementArgument): * Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator== const): * Source/WebCore/rendering/style/StyleRareNonInheritedData.h: * Source/WebCore/rendering/updating/RenderTreeUpdater.cpp: (WebCore::RenderTreeUpdater::RenderTreeUpdater): (WebCore::RenderTreeUpdater::updateAfterDescendants): * Source/WebCore/rendering/updating/RenderTreeUpdater.h: (WebCore::RenderTreeUpdater::viewTransition): * Source/WebCore/rendering/updating/RenderTreeUpdaterViewTransition.cpp: Added. (WebCore::RenderTreeUpdater::ViewTransition::ViewTransition): (WebCore::RenderTreeUpdater::ViewTransition::updatePseudoElementTree): (WebCore::RenderTreeUpdater::ViewTransition::buildPseudoElementGroup): (WebCore::RenderTreeUpdater::ViewTransition::updatePseudoElementGroup): * Source/WebCore/rendering/updating/RenderTreeUpdaterViewTransition.h: Added. * Source/WebCore/style/StyleResolver.cpp: (WebCore::Style::Resolver::styleForPseudoElement): Canonical link: https://commits.webkit.org/273336@main
3ba2672
to
5d7c3bb
Compare
Committed 273336@main (5d7c3bb): https://commits.webkit.org/273336@main Reviewed commits have been landed. Closing PR #21205 and removing active labels. |
5d7c3bb
3ba2672
π wincairoπ§ͺ wpe-wk2π§ͺ gtk-wk2π tv-simπ watch-sim