summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/texmap
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-02-19 19:07:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-20 09:56:36 +0100
commit08322b49d440e36a8c1a8b2f250a641ea1886ae3 (patch)
tree9c6939e8b305d43d83f08f69781943b43872e26b /Source/WebCore/platform/graphics/texmap
parent6b55893ad026f2b95ea6f268eefdeb204a1a134c (diff)
downloadqtwebkit-08322b49d440e36a8c1a8b2f250a641ea1886ae3.tar.gz
[Qt] Fix compilation if Qt was configured with -no-rtti https://bugs.webkit.org/show_bug.cgi?id=110234
Backport of https://trac.webkit.org/r143350. Reviewed by Noam Rosenthal. Availability of dynamic_cast should be checked. Task-number: QTBUG-29723 * platform/graphics/texmap/GraphicsLayerTextureMapper.cpp: (WebCore::GraphicsLayerTextureMapper::updateBackingStoreIfNeeded): Change-Id: I983d17256164e86b2db3bad98093429e0469a9aa Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'Source/WebCore/platform/graphics/texmap')
-rw-r--r--Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
index 88b3e97bd..c13f892b0 100644
--- a/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
+++ b/Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
@@ -452,7 +452,9 @@ void GraphicsLayerTextureMapper::prepareBackingStore()
if (!m_backingStore)
m_backingStore = TextureMapperTiledBackingStore::create();
+#ifndef QT_NO_DYNAMIC_CAST
ASSERT(dynamic_cast<TextureMapperTiledBackingStore*>(m_backingStore.get()));
+#endif
TextureMapperTiledBackingStore* backingStore = static_cast<TextureMapperTiledBackingStore*>(m_backingStore.get());
if (isShowingRepaintCounter())