OSDN Git Service

Merge webkit.org at R49305 : Add ifdefs for enabler flags for V8 on Android.
authorSteve Block <steveblock@google.com>
Tue, 13 Oct 2009 21:43:52 +0000 (22:43 +0100)
committerSteve Block <steveblock@google.com>
Mon, 19 Oct 2009 23:45:09 +0000 (00:45 +0100)
Change-Id: Ia05aafa843b1f9aaf3d4f43cad7d664bf9d497e6

WebCore/bindings/v8/DerivedSourcesAllInOne.cpp
WebCore/bindings/v8/V8DOMWrapper.cpp
WebCore/bindings/v8/V8DOMWrapper.h

index b7c6132..7fd865c 100644 (file)
 #include "bindings/V8NodeIterator.cpp"
 #include "bindings/V8NodeList.cpp"
 #include "bindings/V8Notation.cpp"
+#if PLATFORM(ANDROID)
+// TODO: Upstream NOTIFICATIONS guard.
+#if ENABLE(NOTIFICATIONS)
 #include "bindings/V8Notification.cpp"
 #include "bindings/V8NotificationCenter.cpp"
+#endif
+#endif
 #include "bindings/V8OverflowEvent.cpp"
 #include "bindings/V8PageTransitionEvent.cpp"
 #include "bindings/V8Plugin.cpp"
index 4b0e895..5a6b901 100644 (file)
 #include "DocumentLoader.h"
 #include "FrameLoaderClient.h"
 #include "Notification.h"
+#if PLATFORM(ANDROID)
+// TODO: Upstream SVG guard.
+#if ENABLE(SVG)
 #include "SVGElementInstance.h"
+#endif
+#endif
 #include "ScriptController.h"
 #include "V8AbstractEventListener.h"
 #include "V8Binding.h"
@@ -1423,10 +1428,14 @@ PassRefPtr<EventListener> V8DOMWrapper::getEventListener(Node* node, v8::Local<v
     return 0;
 }
 
+#if PLATFORM(ANDROID)
+#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
+#endif
 
 PassRefPtr<EventListener> V8DOMWrapper::getEventListener(AbstractWorker* worker, v8::Local<v8::Value> value, bool isAttribute, ListenerLookupType lookup)
 {
index 2257688..b5587d5 100644 (file)
@@ -242,6 +242,9 @@ namespace WebCore {
         static PassRefPtr<EventListener> getEventListener(V8Proxy* proxy, v8::Local<v8::Value> value, bool isAttribute, ListenerLookupType lookup);
 
 
+#if PLATFORM(ANDROID)
+// TODO: upstream XPATH guard.
+#if ENABLE(XPATH)
         // XPath-related utilities
         static RefPtr<XPathNSResolver> getXPathNSResolver(v8::Handle<v8::Value> value)
         {
@@ -252,6 +255,8 @@ namespace WebCore {
                 resolver = V8CustomXPathNSResolver::create(value->ToObject());
             return resolver;
         }
+#endif
+#endif
 
         // DOMImplementation is a singleton and it is handled in a special
         // way. A wrapper is generated per document and stored in an