Title: [121569] trunk/Source/WebCore
- Revision
- 121569
- Author
- [email protected]
- Date
- 2012-06-29 10:17:02 -0700 (Fri, 29 Jun 2012)
Log Message
[Qt] Add missing support for tiled shadow blur on fillRect
https://bugs.webkit.org/show_bug.cgi?id=90082
Patch by Bruno de Oliveira Abinader <[email protected]> on 2012-06-29
Reviewed by Noam Rosenthal.
This overloaded fillRect implementation also supports this optimization in
certain situations.
* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::fillRect):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (121568 => 121569)
--- trunk/Source/WebCore/ChangeLog 2012-06-29 16:48:06 UTC (rev 121568)
+++ trunk/Source/WebCore/ChangeLog 2012-06-29 17:17:02 UTC (rev 121569)
@@ -1,3 +1,16 @@
+2012-06-29 Bruno de Oliveira Abinader <[email protected]>
+
+ [Qt] Add missing support for tiled shadow blur on fillRect
+ https://bugs.webkit.org/show_bug.cgi?id=90082
+
+ Reviewed by Noam Rosenthal.
+
+ This overloaded fillRect implementation also supports this optimization in
+ certain situations.
+
+ * platform/graphics/qt/GraphicsContextQt.cpp:
+ (WebCore::GraphicsContext::fillRect):
+
2012-06-29 Brady Eidson <[email protected]>
Build fix - These should not be executable!
Modified: trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp (121568 => 121569)
--- trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp 2012-06-29 16:48:06 UTC (rev 121568)
+++ trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp 2012-06-29 17:17:02 UTC (rev 121569)
@@ -674,12 +674,7 @@
} else {
if (hasShadow()) {
if (shadow->mustUseShadowBlur(this)) {
- GraphicsContext* shadowContext = shadow->beginShadowLayer(this, normalizedRect);
- if (shadowContext) {
- QPainter* shadowPainter = shadowContext->platformContext();
- shadowPainter->fillRect(normalizedRect, p->brush());
- shadow->endShadowLayer(this);
- }
+ shadow->drawRectShadow(this, rect, RoundedRect::Radii());
} else {
// Solid rectangle fill with no blur shadow or transformations applied can be done
// faster without using the shadow layer at all.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes