Title: [289257] branches/safari-613-branch
Revision
289257
Author
[email protected]
Date
2022-02-07 18:52:07 -0800 (Mon, 07 Feb 2022)

Log Message

Cherry-pick r287847. rdar://problem/86488039

    ASSERTION FAILED in RenderLayer::updateClipRects
    https://bugs.webkit.org/show_bug.cgi?id=234315

    Reviewed by Simon Fraser.

    Source/WebCore:

    In clippingRootForPainting(), the dialog element uses the top layer as its clipping root layer.
    When it caculates the clip rects, it caculates all its ancestors' clip rects and caches them
    including the clipping root layer. However, if the ancestor is a transformed layer, it should be
    treated as a root layer. When the transformed layer updates its clip rects, the root layer won't
    match the one in cache. This patch stops the dialog descendant propagating its clipping root layer
    to the ancestors' in cache.

    * rendering/RenderLayer.cpp:
    (WebCore::RenderLayer::clipCrossesPaintingBoundary const):

    LayoutTests:

    * TestExpectations:

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287847 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/LayoutTests/ChangeLog (289256 => 289257)


--- branches/safari-613-branch/LayoutTests/ChangeLog	2022-02-08 02:13:18 UTC (rev 289256)
+++ branches/safari-613-branch/LayoutTests/ChangeLog	2022-02-08 02:52:07 UTC (rev 289257)
@@ -1,3 +1,40 @@
+2022-02-07  Russell Epstein  <[email protected]>
+
+        Cherry-pick r287847. rdar://problem/86488039
+
+    ASSERTION FAILED in RenderLayer::updateClipRects
+    https://bugs.webkit.org/show_bug.cgi?id=234315
+    
+    Reviewed by Simon Fraser.
+    
+    Source/WebCore:
+    
+    In clippingRootForPainting(), the dialog element uses the top layer as its clipping root layer.
+    When it caculates the clip rects, it caculates all its ancestors' clip rects and caches them
+    including the clipping root layer. However, if the ancestor is a transformed layer, it should be
+    treated as a root layer. When the transformed layer updates its clip rects, the root layer won't
+    match the one in cache. This patch stops the dialog descendant propagating its clipping root layer
+    to the ancestors' in cache.
+    
+    * rendering/RenderLayer.cpp:
+    (WebCore::RenderLayer::clipCrossesPaintingBoundary const):
+    
+    LayoutTests:
+    
+    * TestExpectations:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-10  Cathie Chen  <[email protected]>
+
+            ASSERTION FAILED in RenderLayer::updateClipRects
+            https://bugs.webkit.org/show_bug.cgi?id=234315
+
+            Reviewed by Simon Fraser.
+
+            * TestExpectations:
+
 2022-02-02  Russell Epstein  <[email protected]>
 
         Cherry-pick r288423. rdar://problem/87701738

Modified: branches/safari-613-branch/LayoutTests/TestExpectations (289256 => 289257)


--- branches/safari-613-branch/LayoutTests/TestExpectations	2022-02-08 02:13:18 UTC (rev 289256)
+++ branches/safari-613-branch/LayoutTests/TestExpectations	2022-02-08 02:52:07 UTC (rev 289257)
@@ -3931,6 +3931,7 @@
 webkit.org/b/230079 [ Debug ] imported/w3c/web-platform-tests/css/css-transforms/transform-transformed-thead-contains-fixed-position.html [ Skip ]
 webkit.org/b/230079 [ Debug ] imported/w3c/web-platform-tests/css/css-transforms/transform-transformed-tr-contains-fixed-position.html [ Skip ]
 webkit.org/b/230079 [ Debug ] imported/w3c/web-platform-tests/css/css-transforms/transform-transformed-tr-percent-height-child.html [ Skip ]
+webkit.org/b/230079 [ Debug ] fast/layers/top-layer-ancestor-opacity-and-transform-crash.html [ Skip ]
 
 webkit.org/b/230080 [ Release ] imported/w3c/web-platform-tests/css/css-transforms/transform-transformed-tbody-contains-fixed-position.html [ ImageOnlyFailure ]
 webkit.org/b/230080 [ Release ] imported/w3c/web-platform-tests/css/css-transforms/transform-transformed-tfoot-contains-fixed-position.html [ ImageOnlyFailure ]
@@ -5171,8 +5172,6 @@
 
 imported/w3c/web-platform-tests/css/css-shadow-parts/interaction-with-nested-pseudo-class.html [ ImageOnlyFailure ]
 
-webkit.org/b/234315 [ Debug ] fast/layers/top-layer-ancestor-opacity-and-transform-crash.html [ Skip ]
-
 webkit.org/b/183994 imported/w3c/web-platform-tests/css/cssom/css-style-attr-decl-block.html [ Failure ]
 
 # Test is crashing in Debug builds since import.

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (289256 => 289257)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:13:18 UTC (rev 289256)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-02-08 02:52:07 UTC (rev 289257)
@@ -1,3 +1,48 @@
+2022-02-07  Russell Epstein  <[email protected]>
+
+        Cherry-pick r287847. rdar://problem/86488039
+
+    ASSERTION FAILED in RenderLayer::updateClipRects
+    https://bugs.webkit.org/show_bug.cgi?id=234315
+    
+    Reviewed by Simon Fraser.
+    
+    Source/WebCore:
+    
+    In clippingRootForPainting(), the dialog element uses the top layer as its clipping root layer.
+    When it caculates the clip rects, it caculates all its ancestors' clip rects and caches them
+    including the clipping root layer. However, if the ancestor is a transformed layer, it should be
+    treated as a root layer. When the transformed layer updates its clip rects, the root layer won't
+    match the one in cache. This patch stops the dialog descendant propagating its clipping root layer
+    to the ancestors' in cache.
+    
+    * rendering/RenderLayer.cpp:
+    (WebCore::RenderLayer::clipCrossesPaintingBoundary const):
+    
+    LayoutTests:
+    
+    * TestExpectations:
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-01-10  Cathie Chen  <[email protected]>
+
+            ASSERTION FAILED in RenderLayer::updateClipRects
+            https://bugs.webkit.org/show_bug.cgi?id=234315
+
+            Reviewed by Simon Fraser.
+
+            In clippingRootForPainting(), the dialog element uses the top layer as its clipping root layer.
+            When it caculates the clip rects, it caculates all its ancestors' clip rects and caches them
+            including the clipping root layer. However, if the ancestor is a transformed layer, it should be
+            treated as a root layer. When the transformed layer updates its clip rects, the root layer won't
+            match the one in cache. This patch stops the dialog descendant propagating its clipping root layer
+            to the ancestors' in cache.
+
+            * rendering/RenderLayer.cpp:
+            (WebCore::RenderLayer::clipCrossesPaintingBoundary const):
+
 2022-02-02  Russell Epstein  <[email protected]>
 
         Cherry-pick r288667. rdar://problem/87830583

Modified: branches/safari-613-branch/Source/WebCore/rendering/RenderLayer.cpp (289256 => 289257)


--- branches/safari-613-branch/Source/WebCore/rendering/RenderLayer.cpp	2022-02-08 02:13:18 UTC (rev 289256)
+++ branches/safari-613-branch/Source/WebCore/rendering/RenderLayer.cpp	2022-02-08 02:52:07 UTC (rev 289257)
@@ -4461,6 +4461,9 @@
 
 bool RenderLayer::clipCrossesPaintingBoundary() const
 {
+    if (establishesTopLayer())
+        return true;
+
     return parent()->enclosingPaginationLayer(IncludeCompositedPaginatedLayers) != enclosingPaginationLayer(IncludeCompositedPaginatedLayers)
         || parent()->enclosingCompositingLayerForRepaint() != enclosingCompositingLayerForRepaint();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to