-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capturing the old view transition snapshot includes descendant view-t…
…ransition. https://bugs.webkit.org/show_bug.cgi?id=270056 <rdar://123606877> Reviewed by Tim Nguyen. The 'capture the image' algorithm should skip over descendant elements that also have a view transition. This changes snapshotNodeVisualOverflowClippedToViewport to call 'paint' on the RenderLayer of the element with a view-transition directly rather than calling it on the root elements Layer (with a subtree painting root set). It adds a new PaintFlag 'PaintingSkipDescendantViewTransition' which skips descending into child layers that are being separately captured in a view transition. * LayoutTests/TestExpectations: * Source/WebCore/dom/ViewTransition.cpp: (WebCore::snapshotNodeVisualOverflowClippedToViewport): (WebCore::ViewTransition::captureOldState): * Source/WebCore/rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintList): * Source/WebCore/rendering/RenderLayer.h: Canonical link: https://commits.webkit.org/275312@main
- Loading branch information
1 parent
c6ffba6
commit b560a1b
Showing
4 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters