Title: [108433] trunk/Source/WebCore
Revision
108433
Author
[email protected]
Date
2012-02-21 18:58:54 -0800 (Tue, 21 Feb 2012)

Log Message

Early-out in Region::unite() for adding an empty region.
https://bugs.webkit.org/show_bug.cgi?id=79174

Patch by Dana Jansens <[email protected]> on 2012-02-21
Reviewed by Anders Carlsson.

* platform/graphics/Region.cpp:
(WebCore::Region::unite):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (108432 => 108433)


--- trunk/Source/WebCore/ChangeLog	2012-02-22 02:46:54 UTC (rev 108432)
+++ trunk/Source/WebCore/ChangeLog	2012-02-22 02:58:54 UTC (rev 108433)
@@ -1,5 +1,15 @@
 2012-02-21  Dana Jansens  <[email protected]>
 
+        Early-out in Region::unite() for adding an empty region.
+        https://bugs.webkit.org/show_bug.cgi?id=79174
+
+        Reviewed by Anders Carlsson.
+
+        * platform/graphics/Region.cpp:
+        (WebCore::Region::unite):
+
+2012-02-21  Dana Jansens  <[email protected]>
+
         [chromium] Painting a layer clears opaque rect in untouched tiles
         https://bugs.webkit.org/show_bug.cgi?id=79157
 

Modified: trunk/Source/WebCore/platform/graphics/Region.cpp (108432 => 108433)


--- trunk/Source/WebCore/platform/graphics/Region.cpp	2012-02-22 02:46:54 UTC (rev 108432)
+++ trunk/Source/WebCore/platform/graphics/Region.cpp	2012-02-22 02:58:54 UTC (rev 108433)
@@ -443,6 +443,9 @@
 
 void Region::unite(const Region& region)
 {
+    if (region.isEmpty())
+        return;
+
     Shape unitedShape = Shape::unionShapes(m_shape, region.m_shape);
 
     m_shape.swap(unitedShape);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to