summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin Jabot <corentinjabot@gmail.com>2015-01-12 00:02:04 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-02-24 12:46:43 +0000
commit3540ffc888996ef07b84bfe5434094d9c84eefd9 (patch)
tree831c582e989914618b1e4fc88de9e62fac812444
parentf11cfbcb5d7fd5ad4e32deae77fac6d17f87a4b7 (diff)
Fix build with -no-rtti
WebCore was unable to build with -no-rtti since 82d8a5c8 Change-Id: I52dbd9b8db6c3b44ebad9e2518d89bdbe1430c3a Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
-rw-r--r--Source/WebCore/platform/graphics/qt/ImageBufferDataQt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/qt/ImageBufferDataQt.cpp b/Source/WebCore/platform/graphics/qt/ImageBufferDataQt.cpp
index 1235ce690..aae31567f 100644
--- a/Source/WebCore/platform/graphics/qt/ImageBufferDataQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/ImageBufferDataQt.cpp
@@ -202,6 +202,7 @@ void ImageBufferDataPrivateAccelerated::draw(GraphicsContext* destContext, Color
const FloatRect& srcRect, CompositeOperator op, BlendMode blendMode,
bool useLowQualityScale, bool /*ownContext*/)
{
+#if !defined(QT_NO_DYNAMIC_CAST)
if (destContext->isAcceleratedContext()) {
invalidateState();
@@ -240,6 +241,7 @@ void ImageBufferDataPrivateAccelerated::draw(GraphicsContext* destContext, Color
return;
}
}
+#endif
RefPtr<Image> image = StillImage::create(QPixmap::fromImage(toQImage()));
destContext->drawImage(image.get(), styleColorSpace, destRect, srcRect, op, blendMode,
DoNotRespectImageOrientation, useLowQualityScale);