Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1d76f585b407b4193756ebe2d18d83b230fa962e
https://github.com/WebKit/WebKit/commit/1d76f585b407b4193756ebe2d18d83b230fa962e
Author: Taher Ali <[email protected]>
Date: 2025-07-08 (Tue, 08 Jul 2025)
Changed paths:
M LayoutTests/fast/snapshot/nested-stacking-context.html
M LayoutTests/fast/snapshot/positioned-abs-relative-body.html
A LayoutTests/fast/snapshot/positioned-static-abs-expected.html
A LayoutTests/fast/snapshot/positioned-static-abs.html
A LayoutTests/fast/snapshot/positioned-static-expected.html
A LayoutTests/fast/snapshot/positioned-static.html
A LayoutTests/resources/snapshot-helper.js
M Source/WebCore/page/FrameSnapshotting.cpp
M Source/WebCore/page/FrameSnapshotting.h
M Source/WebCore/platform/DragImage.cpp
M Source/WebCore/rendering/PaintPhase.h
M Source/WebCore/rendering/RenderLayer.cpp
M Source/WebCore/testing/Internals.cpp
Log Message:
-----------
Drag snapshot does not paint for normal flow content
rdar://154202408
Reviewed by Simon Fraser.
Drag snapshots did not work for normal flow content because
enclosingLayer found the nearest layer as the HTML root layer.
As a result, the layer used for painting decisions was a much
higher ancestor. We now restrict this with a hasLayer check.
For non-layer roots, we exclude positioned descendants from the
drag image if they extend outside the containing block.
All the special inclusion/exclusion logic is now guraded behind a
new paint behavior DraggableSnapshot.
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::snapshotNode):
snapshot tests only draggable paint behavior.
Canonical link: https://commits.webkit.org/297110@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes