Title: [291645] branches/safari-613-branch/Source/WebCore
Revision
291645
Author
alanc...@apple.com
Date
2022-03-22 10:55:22 -0700 (Tue, 22 Mar 2022)

Log Message

Cherry-pick r290832. rdar://problem/89758344

    Top layers should not be moved
    https://bugs.webkit.org/show_bug.cgi?id=237305

    Patch by Rob Buis <rb...@igalia.com> on 2022-03-04
    Reviewed by Tim Nguyen.

    Top layers are always children of RenderView and should not be moved.

    * rendering/RenderElement.cpp:
    (WebCore::RenderElement::moveLayers):

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

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (291644 => 291645)


--- branches/safari-613-branch/Source/WebCore/ChangeLog	2022-03-22 17:55:18 UTC (rev 291644)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog	2022-03-22 17:55:22 UTC (rev 291645)
@@ -1,5 +1,34 @@
 2022-03-21  Alan Coon  <alanc...@apple.com>
 
+        Cherry-pick r290832. rdar://problem/89758344
+
+    Top layers should not be moved
+    https://bugs.webkit.org/show_bug.cgi?id=237305
+    
+    Patch by Rob Buis <rb...@igalia.com> on 2022-03-04
+    Reviewed by Tim Nguyen.
+    
+    Top layers are always children of RenderView and should not be moved.
+    
+    * rendering/RenderElement.cpp:
+    (WebCore::RenderElement::moveLayers):
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-04  Rob Buis  <rb...@igalia.com>
+
+            Top layers should not be moved
+            https://bugs.webkit.org/show_bug.cgi?id=237305
+
+            Reviewed by Tim Nguyen.
+
+            Top layers are always children of RenderView and should not be moved.
+
+            * rendering/RenderElement.cpp:
+            (WebCore::RenderElement::moveLayers):
+
+2022-03-21  Alan Coon  <alanc...@apple.com>
+
         Cherry-pick r290830. rdar://problem/89081463
 
     CSP report does not get sent to the document in the case of a detached element

Modified: branches/safari-613-branch/Source/WebCore/rendering/RenderElement.cpp (291644 => 291645)


--- branches/safari-613-branch/Source/WebCore/rendering/RenderElement.cpp	2022-03-22 17:55:18 UTC (rev 291644)
+++ branches/safari-613-branch/Source/WebCore/rendering/RenderElement.cpp	2022-03-22 17:55:22 UTC (rev 291645)
@@ -723,6 +723,8 @@
 void RenderElement::moveLayers(RenderLayer* oldParent, RenderLayer& newParent)
 {
     if (hasLayer()) {
+        if (isInTopLayerOrBackdrop(style(), element()))
+            return;
         RenderLayer* layer = downcast<RenderLayerModelObject>(*this).layer();
         ASSERT(oldParent == layer->parent());
         if (oldParent)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to