Title: [140412] trunk/Source/WebCore
- Revision
- 140412
- Author
- [email protected]
- Date
- 2013-01-22 04:36:14 -0800 (Tue, 22 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.
Set an initial clip on the transparency layer, so that the clipping
bounds will never end up larger than the layer.
* platform/graphics/qt/TransparencyLayer.h:
(WebCore::TransparencyLayer::TransparencyLayer):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (140411 => 140412)
--- trunk/Source/WebCore/ChangeLog 2013-01-22 12:15:14 UTC (rev 140411)
+++ trunk/Source/WebCore/ChangeLog 2013-01-22 12:36:14 UTC (rev 140412)
@@ -1,3 +1,16 @@
+2013-01-22 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.
+
+ Set an initial clip on the transparency layer, so that the clipping
+ bounds will never end up larger than the layer.
+
+ * platform/graphics/qt/TransparencyLayer.h:
+ (WebCore::TransparencyLayer::TransparencyLayer):
+
2013-01-22 Matt Falkenhagen <[email protected]>
Move top layer flag from ElementRareData to NodeFlags
Modified: trunk/Source/WebCore/platform/graphics/qt/TransparencyLayer.h (140411 => 140412)
--- trunk/Source/WebCore/platform/graphics/qt/TransparencyLayer.h 2013-01-22 12:15:14 UTC (rev 140411)
+++ trunk/Source/WebCore/platform/graphics/qt/TransparencyLayer.h 2013-01-22 12:36:14 UTC (rev 140412)
@@ -61,6 +61,8 @@
painter.setTransform(p->transform(), true);
painter.setFont(p->font());
painter.setOpacity(1);
+ // Set a default clip, so IntersectClip will work correctly later.
+ painter.setClipRect(0, 0, rect.width(), rect.height());
}
TransparencyLayer()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes