Title: [141413] trunk/Source/WebCore
Revision
141413
Author
[email protected]
Date
2013-01-31 06:07:58 -0800 (Thu, 31 Jan 2013)

Log Message

[Qt] Box shadows on a transparency layer is very slow
https://bugs.webkit.org/show_bug.cgi?id=107547

Reviewed by Noam Rosenthal.

Include the window boundaries in the clip returned by GraphicsContext,
since QPainter may remember clips larger than the destination, but
ShadowBlur uses the clipBounds to determine the size of the shadow layer.

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::clipBounds):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (141412 => 141413)


--- trunk/Source/WebCore/ChangeLog	2013-01-31 14:07:22 UTC (rev 141412)
+++ trunk/Source/WebCore/ChangeLog	2013-01-31 14:07:58 UTC (rev 141413)
@@ -1,3 +1,17 @@
+2013-01-31  Allan Sandfeld Jensen  <[email protected]>
+
+        [Qt] Box shadows on a transparency layer is very slow
+        https://bugs.webkit.org/show_bug.cgi?id=107547
+
+        Reviewed by Noam Rosenthal.
+
+        Include the window boundaries in the clip returned by GraphicsContext,
+        since QPainter may remember clips larger than the destination, but
+        ShadowBlur uses the clipBounds to determine the size of the shadow layer.
+
+        * platform/graphics/qt/GraphicsContextQt.cpp:
+        (WebCore::GraphicsContext::clipBounds):
+
 2013-01-31  Pavel Feldman  <[email protected]>
 
         Web Inspector: highlight backend languages as scripts

Modified: trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp (141412 => 141413)


--- trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp	2013-01-31 14:07:22 UTC (rev 141412)
+++ trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp	2013-01-31 14:07:58 UTC (rev 141413)
@@ -821,10 +821,10 @@
     QPainter* p = m_data->p();
     QRectF clipRect;
 
+    clipRect = p->transform().inverted().mapRect(p->window());
+
     if (p->hasClipping())
-        clipRect = m_data->clipBoundingRect();
-    else
-        clipRect = p->transform().inverted().mapRect(p->window());
+        clipRect = clipRect.intersected(m_data->clipBoundingRect());
 
     return enclosingIntRect(clipRect);
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to