2009-11-15 Evan Martin <evan@chromium.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 15 Nov 2009 23:29:31 +0000 (23:29 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 15 Nov 2009 23:29:31 +0000 (23:29 +0000)
        Reviewed by Adam Barth.

        Wrap some SVG code in V8DOMWrapper with an ENABLE(SVG) test.

        https://bugs.webkit.org/show_bug.cgi?id=31490

        * bindings/v8/V8DOMWrapper.cpp:

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

WebCore/ChangeLog
WebCore/bindings/v8/V8DOMWrapper.cpp

index 93b8cc225c6f26ab3989264b7a7329a8a7609ffc..722e17f8e5f44761f6ef50a9388427bf4cfc766f 100644 (file)
@@ -1,3 +1,13 @@
+2009-11-15  Evan Martin  <evan@chromium.org>
+
+        Reviewed by Adam Barth.
+
+        Wrap some SVG code in V8DOMWrapper with an ENABLE(SVG) test.
+
+        https://bugs.webkit.org/show_bug.cgi?id=31490
+
+        * bindings/v8/V8DOMWrapper.cpp:
+
 2009-11-15  Maxime Simon  <simon.maxime@gmail.com>
 
         Reviewed by Adam Barth.
index 60eaa5571110b77d6ad58b91d431ad03bafa7e57..ddf89464f0bc4d0c209a3a24b91f437f5a3b255a 100644 (file)
@@ -1495,10 +1495,12 @@ PassRefPtr<EventListener> V8DOMWrapper::getEventListener(Node* node, v8::Local<v
     return (lookup == ListenerFindOnly) ? V8EventListenerList::findWrapper(value, isAttribute) : V8EventListenerList::findOrCreateWrapper<V8EventListener>(value, isAttribute);
 }
 
+#if ENABLE(SVG)
 PassRefPtr<EventListener> V8DOMWrapper::getEventListener(SVGElementInstance* element, v8::Local<v8::Value> value, bool isAttribute, ListenerLookupType lookup)
 {
     return getEventListener(element->correspondingElement(), value, isAttribute, lookup);
 }
+#endif
 
 PassRefPtr<EventListener> V8DOMWrapper::getEventListener(AbstractWorker* worker, v8::Local<v8::Value> value, bool isAttribute, ListenerLookupType lookup)
 {