diff options
author | Corentin Jabot <corentinjabot@gmail.com> | 2015-01-12 00:02:04 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-02-24 12:46:43 +0000 |
commit | 3540ffc888996ef07b84bfe5434094d9c84eefd9 (patch) | |
tree | 831c582e989914618b1e4fc88de9e62fac812444 | |
parent | f11cfbcb5d7fd5ad4e32deae77fac6d17f87a4b7 (diff) | |
download | qtwebkit-3540ffc888996ef07b84bfe5434094d9c84eefd9.tar.gz |
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.cpp | 2 |
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); |