Fix !ENABLE(3D_CANVAS) build.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jan 2010 22:04:20 +0000 (22:04 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jan 2010 22:04:20 +0000 (22:04 +0000)
* rendering/RenderLayerBacking.cpp:
(WebCore::is3DCanvas):

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

WebCore/ChangeLog
WebCore/rendering/RenderLayerBacking.cpp

index 5a890a0..b187283 100644 (file)
@@ -1,3 +1,10 @@
+2010-01-18  Anders Carlsson  <andersca@apple.com>
+
+        Fix !ENABLE(3D_CANVAS) build.
+
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::is3DCanvas):
+
 2010-01-18  Timothy Hatcher  <timothy@apple.com>
 
         Adjust the scroll position when doing a full page zoom, so the content
index 54e43d6..21363c3 100644 (file)
@@ -67,6 +67,8 @@ static inline bool is3DCanvas(RenderObject* renderer)
 #if ENABLE(3D_CANVAS)    
     if (renderer->isCanvas())
         return static_cast<HTMLCanvasElement*>(renderer->node())->is3D();
+#else
+    UNUSED_PARAM(renderer);
 #endif
     return false;
 }