Title: [178534] trunk/Source/WebCore
Revision
178534
Author
[email protected]
Date
2015-01-15 15:15:35 -0800 (Thu, 15 Jan 2015)

Log Message

LayerFragment should be able to intersect with ClipRect.
https://bugs.webkit.org/show_bug.cgi?id=140498

Reviewed by Simon Fraser.

No change in functionality.

* rendering/LayerFragment.h:
(WebCore::LayerFragment::intersect):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::collectFragments):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (178533 => 178534)


--- trunk/Source/WebCore/ChangeLog	2015-01-15 23:13:38 UTC (rev 178533)
+++ trunk/Source/WebCore/ChangeLog	2015-01-15 23:15:35 UTC (rev 178534)
@@ -1,5 +1,19 @@
 2015-01-15  Zalan Bujtas  <[email protected]>
 
+        LayerFragment should be able to intersect with ClipRect.
+        https://bugs.webkit.org/show_bug.cgi?id=140498
+
+        Reviewed by Simon Fraser.
+
+        No change in functionality.
+
+        * rendering/LayerFragment.h:
+        (WebCore::LayerFragment::intersect):
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::collectFragments):
+
+2015-01-15  Zalan Bujtas  <[email protected]>
+
         Move ClipRects and ClipRectsCache classes to RenderLayer.cpp.
         https://bugs.webkit.org/show_bug.cgi?id=140461
 

Modified: trunk/Source/WebCore/rendering/LayerFragment.h (178533 => 178534)


--- trunk/Source/WebCore/rendering/LayerFragment.h	2015-01-15 23:13:38 UTC (rev 178533)
+++ trunk/Source/WebCore/rendering/LayerFragment.h	2015-01-15 23:15:35 UTC (rev 178534)
@@ -64,6 +64,13 @@
         boundingBox.intersect(rect);
     }
     
+    void intersect(const ClipRect& clipRect)
+    {
+        backgroundRect.intersect(clipRect);
+        foregroundRect.intersect(clipRect);
+        outlineRect.intersect(clipRect);
+    }
+
     bool shouldPaintContent = false;
     bool hasBoundingBox = false;
     LayoutRect layerBounds;

Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (178533 => 178534)


--- trunk/Source/WebCore/rendering/RenderLayer.cpp	2015-01-15 23:13:38 UTC (rev 178533)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp	2015-01-15 23:15:35 UTC (rev 178534)
@@ -4531,14 +4531,7 @@
 
         // Intersect the fragment with our ancestor's background clip so that e.g., columns in an overflow:hidden block are
         // properly clipped by the overflow.
-        fragment.intersect(ancestorClipRect.rect());
-        
-        // If the ancestor clip rect has border-radius, make sure to apply it to the fragments.
-        if (ancestorClipRect.affectedByRadius()) {
-            fragment.foregroundRect.setAffectedByRadius(true);
-            fragment.backgroundRect.setAffectedByRadius(true);
-            fragment.outlineRect.setAffectedByRadius(true);
-        }
+        fragment.intersect(ancestorClipRect);
 
         // Now intersect with our pagination clip. This will typically mean we're just intersecting the dirty rect with the column
         // clip, so the column clip ends up being all we apply.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to