summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp')
-rw-r--r--Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
index da02416d5..4cbf17a24 100644
--- a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
@@ -660,6 +660,9 @@ void GraphicsContext::fillPath(const Path& path)
if (paintingDisabled())
return;
+ if (!(m_state.fillPattern || m_state.fillGradient || m_state.fillColor.isValid()))
+ return;
+
QPainter* p = m_data->p();
QPainterPath platformPath = path.platformPath();
platformPath.setFillRule(toQtFillRule(fillRule()));
@@ -824,6 +827,9 @@ void GraphicsContext::fillRect(const FloatRect& rect)
if (paintingDisabled())
return;
+ if (!(m_state.fillPattern || m_state.fillGradient || m_state.fillColor.isValid()))
+ return;
+
QPainter* p = m_data->p();
QRectF normalizedRect = rect.normalized();