Fix the TextureMapper build for non-Qt ports. Qt debug builds
authormrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Feb 2012 18:33:24 +0000 (18:33 +0000)
committermrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Feb 2012 18:33:24 +0000 (18:33 +0000)
must use RTTI, but GTK+, at least, does not.

* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::updateBackingStore): Make the RTTI check
Qt only.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@108162 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp

index 0575711..2338c34 100644 (file)
@@ -1,3 +1,12 @@
+2012-02-18  Martin Robinson  <mrobinson@igalia.com>
+
+        Fix the TextureMapper build for non-Qt ports. Qt debug builds
+        must use RTTI, but GTK+, at least, does not.
+
+        * platform/graphics/texmap/TextureMapperLayer.cpp:
+        (WebCore::TextureMapperLayer::updateBackingStore): Make the RTTI check
+        Qt only.
+
 2012-02-16  Andreas Kling  <awesomekling@apple.com>
 
         FontFamilyValue: Utilize inheritance from CSSPrimitiveValue better.
index b21cbc1..5f3862b 100644 (file)
@@ -109,7 +109,9 @@ void TextureMapperLayer::updateBackingStore(TextureMapper* textureMapper, Graphi
     if (!m_backingStore)
         m_backingStore = TextureMapperTiledBackingStore::create();
 
+#if PLATFORM(QT)
     ASSERT(dynamic_cast<TextureMapperTiledBackingStore*>(m_backingStore.get()));
+#endif
 
     // Paint the entire dirty rect into an image buffer. This ensures we only paint once.
     OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(dirtyRect.size());