Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3c71d5e470ce90242e668671d7174a45e3165515
      
https://github.com/WebKit/WebKit/commit/3c71d5e470ce90242e668671d7174a45e3165515
  Author: Matt Woodrow <[email protected]>
  Date:   2025-09-26 (Fri, 26 Sep 2025)

  Changed paths:
    M LayoutTests/platform/ios-18/TestExpectations
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/platform/mac-sequoia/TestExpectations
    M LayoutTests/platform/mac/TestExpectations
    M Source/WebCore/rendering/RenderLayerCompositor.cpp
    M Source/WebCore/rendering/RenderObject.cpp

  Log Message:
  -----------
  Viewport clipping layers are incorrectly positioned when the element is 
captured in a view transition.
https://bugs.webkit.org/show_bug.cgi?id=299578
rdar://154886047

Reviewed by Wenson Hsieh.

Viewport clipping layers should only be added for layers that have the
RenderView as their composited ancestor.

Once they get captured in a view transition, their GraphicsLayers will get
reparented as replaced contents into the pseudo element's layers (which is
guaranteed to be composited) so they no longer meet this criteria. As such,
their computed position can be incorrect (not accounting for ancestor offsets)
and they clip incorrectly.

* LayoutTests/platform/ios-18/TestExpectations:
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/mac-sequoia/TestExpectations:
* LayoutTests/platform/mac/TestExpectations:
* Source/WebCore/rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::viewportConstrainedSublayers const):
* Source/WebCore/rendering/RenderObject.cpp:
(WebCore::RenderObject::setCapturedInViewTransition):

Canonical link: https://commits.webkit.org/300561@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

Reply via email to