2006-12-04 Oliver Hunt <oliver@apple.com>
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Dec 2006 22:32:43 +0000 (22:32 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Dec 2006 22:32:43 +0000 (22:32 +0000)
        Build fix for non-SVG builds

        * bindings/js/JSSVGPoint.cpp:
        (WebCore::JSSVGPointProtoFunc::callAsFunction):

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

WebCore/ChangeLog
WebCore/bindings/js/JSSVGPoint.cpp

index d6ec610845abe4bdf29ebe9a1053a3858bc29dc1..a955b567b015589c4ae2fd97c396793fb3779452 100644 (file)
@@ -1,3 +1,10 @@
+2006-12-04  Oliver Hunt  <oliver@apple.com>
+
+        Build fix for non-SVG builds
+
+        * bindings/js/JSSVGPoint.cpp:
+        (WebCore::JSSVGPointProtoFunc::callAsFunction):
+
 2006-12-04  Darin Adler  <darin@apple.com>
 
         Reviewed by Beth.
index b8e4e22ea178ce29e847b70f22687df73c77b32a..fd6b1bc4dc2f97b4facb49ac3748c8bf538325b4 100644 (file)
@@ -96,6 +96,7 @@ JSValue* JSSVGPointProtoFunc::callAsFunction(ExecState* exec, JSObject* thisObj,
     if (!thisObj->inherits(&JSSVGPoint::info))
         return throwError(exec, TypeError);
 
+#ifdef SVG_SUPPORT
     FloatPoint point = static_cast<JSSVGPoint*>(thisObj)->impl();
     switch (id) {
         case JSSVGPoint::MatrixTransform: {
@@ -106,6 +107,7 @@ JSValue* JSSVGPointProtoFunc::callAsFunction(ExecState* exec, JSObject* thisObj,
             return getJSSVGPoint(exec, p);
         }
     }
+#endif
 
     return jsUndefined();
 }