Reviewed by Tim H.
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Dec 2006 18:40:59 +0000 (18:40 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Dec 2006 18:40:59 +0000 (18:40 +0000)
        Fix for http://bugs.webkit.org/show_bug.cgi?id=11758
        Don't compile custom SVG and XSLT bindings in non-svg build

        * bindings/js/JSSVGNumber.cpp:
        * bindings/js/JSSVGNumber.h:
        * bindings/js/JSSVGPoint.cpp:
        * bindings/js/JSSVGPoint.h:
        * bindings/js/JSSVGRect.cpp:
        * bindings/js/JSSVGRect.h:
        * bindings/js/JSXSLTProcessor.cpp:
        * bindings/js/JSXSLTProcessor.h:

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

WebCore/ChangeLog
WebCore/bindings/js/JSSVGNumber.cpp
WebCore/bindings/js/JSSVGNumber.h
WebCore/bindings/js/JSSVGPoint.cpp
WebCore/bindings/js/JSSVGPoint.h
WebCore/bindings/js/JSSVGRect.cpp
WebCore/bindings/js/JSSVGRect.h
WebCore/bindings/js/JSXSLTProcessor.cpp
WebCore/bindings/js/JSXSLTProcessor.h

index 5289b3961215e283b48bf1c13c3001c25e7e6082..bbc60f100c344f2f048428d4368757d4418c7769 100644 (file)
@@ -1,3 +1,19 @@
+2006-12-05  Sam Weinig  <sam@webkit.org>
+
+        Reviewed by Tim H.
+
+        Fix for http://bugs.webkit.org/show_bug.cgi?id=11758
+        Don't compile custom SVG and XSLT bindings in non-svg build
+
+        * bindings/js/JSSVGNumber.cpp:
+        * bindings/js/JSSVGNumber.h:
+        * bindings/js/JSSVGPoint.cpp:
+        * bindings/js/JSSVGPoint.h:
+        * bindings/js/JSSVGRect.cpp:
+        * bindings/js/JSSVGRect.h:
+        * bindings/js/JSXSLTProcessor.cpp:
+        * bindings/js/JSXSLTProcessor.h:
+
 2006-12-04  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Darin
index 42f04b52994e33ea4c146e7293f104d48b81e38f..dcf1bbd015070ba6b5a6a0be70a5f45fa34c03c9 100644 (file)
@@ -24,6 +24,9 @@
  */
 
 #include "config.h"
+
+#ifdef SVG_SUPPORT
+
 #include "JSSVGNumber.h"
 
 #include "JSSVGNumberTable.cpp"
@@ -78,4 +81,6 @@ JSValue* getJSSVGNumber(ExecState* exec, double v)
     return new JSSVGNumber(exec, v);
 }
 
-}
+} // namespace WebCore
+
+#endif // SVG_SUPPORT
index ec5299337d958d3dca4d43fac5521ef098fcbe9d..6d32137c4faedd3125949ea0716d7ec27391933d 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
-#ifndef JSSVGNumber_H
-#define JSSVGNumber_H
+#ifndef JSSVGNumber_h
+#define JSSVGNumber_h
+
+#ifdef SVG_SUPPORT
 
 #include "kjs_binding.h"
 
@@ -54,6 +56,8 @@ private:
 
 KJS::JSValue* getJSSVGNumber(KJS::ExecState*, double);
 
-}
+} // namespace WebCore
+
+#endif // SVG_SUPPORT
 
-#endif
+#endif // JSSVGNumber_h
index fd6b1bc4dc2f97b4facb49ac3748c8bf538325b4..a83c2d9bb7df2d6e188eb43db6c87da9eadb17f3 100644 (file)
  */
 
 #include "config.h"
-#include "JSSVGMatrix.h"
+
+#ifdef SVG_SUPPORT
+
 #include "JSSVGPoint.h"
-#include "SVGMatrix.h"
 
+#include "JSSVGMatrix.h"
+#include "SVGMatrix.h"
 #include "JSSVGPointTable.cpp"
 
 using namespace KJS;
@@ -122,4 +125,6 @@ FloatPoint toFloatPoint(JSValue* val)
     return val->isObject(&JSSVGPoint::info) ? static_cast<JSSVGPoint*>(val)->impl() : FloatPoint();
 }
 
-}
+} // namespace WebCore
+
+#endif // SVG_SUPPORT
index 3c8a40aba675d573d7f0ed2ab76e225f1a86f37b..611314c2cfa51bd5d7988fc51dd93ce1fc9b9823 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
-#ifndef JSSVGPoint_H
-#define JSSVGPoint_H
+#ifndef JSSVGPoint_h
+#define JSSVGPoint_h
+
+#ifdef SVG_SUPPORT
 
 #include "kjs_binding.h"
 #include "FloatPoint.h"
@@ -59,6 +61,8 @@ private:
 KJS::JSValue* getJSSVGPoint(KJS::ExecState*, const FloatPoint&);
 FloatPoint toFloatPoint(KJS::JSValue*);
   
-}
+} // namespace WebCore
+
+#endif // SVG_SUPPORT
 
-#endif
+#endif // JSSVGPoint_h
index 03adec70a29d0ecd484fb672e76495524a5e9a43..3e0800edaa796eb4b970fc05c3058726bbdf186b 100644 (file)
@@ -24,6 +24,9 @@
  */
 
 #include "config.h"
+
+#ifdef SVG_SUPPORT
+
 #include "JSSVGRect.h"
 
 #include "JSSVGRectTable.cpp"
@@ -100,4 +103,6 @@ FloatRect toFloatRect(JSValue* val)
     return val->isObject(&JSSVGRect::info) ? static_cast<JSSVGRect*>(val)->impl() : FloatRect();
 }
 
-}
+} // namespace WebCore
+
+#endif // SVG_SUPPORT
index 9837402c5a1fbe30530e0359241a37be7ec2fc5c..073729383d365f2285721c4fedfb3866695146b5 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
-#ifndef JSSVGRect_H
-#define JSSVGRect_H
+#ifndef JSSVGRect_h
+#define JSSVGRect_h
+
+#ifdef SVG_SUPPORT
 
 #include "kjs_binding.h"
 #include "FloatRect.h"
@@ -56,6 +58,8 @@ private:
 KJS::JSValue* getJSSVGRect(KJS::ExecState*, const FloatRect&);
 FloatRect toFloatRect(KJS::JSValue*);
 
-}
+} // namespace WebCore
+
+#endif // SVG_SUPPORT
 
-#endif
+#endif // JSSVGRect_h
index 5ef2674bf777d5b86698982d7bea9a3de581c03b..a5b822bbd88a2a541cb97d5cbc9380e017b9111b 100644 (file)
@@ -28,6 +28,7 @@
 #ifdef XSLT_SUPPORT
 
 #include "JSXSLTProcessor.h"
+
 #include "XSLTProcessor.h"
 #include "JSXSLTProcessor.lut.h"
 #include "kjs_dom.h"
index 9832e997489b2e577d2df12c6c89ec1c709909b7..a66338df7f7cbe20a53c214ad33be0ab2ca6d780 100644 (file)
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
-#ifdef XSLT_SUPPORT
-
 #ifndef XSLTProcessor_H
 #define XSLTProcessor_H
 
+#ifdef XSLT_SUPPORT
+
 #include "kjs_binding.h"
 
 namespace WebCore {
@@ -65,6 +65,6 @@ public:
 
 } // namespace KJS
 
-#endif // XSLTProcessor_H
-
 #endif // XSLT_SUPPORT
+
+#endif // XSLTProcessor_H