From 86cfdd09c85781ba25861c20984629b3b5fefa0d Mon Sep 17 00:00:00 2001 From: Steve Block Date: Tue, 13 Oct 2009 22:43:52 +0100 Subject: Merge webkit.org at R49305 : Add ifdefs for enabler flags for V8 on Android. Change-Id: Ia05aafa843b1f9aaf3d4f43cad7d664bf9d497e6 --- WebCore/bindings/v8/DerivedSourcesAllInOne.cpp | 5 +++++ WebCore/bindings/v8/V8DOMWrapper.cpp | 9 +++++++++ WebCore/bindings/v8/V8DOMWrapper.h | 5 +++++ 3 files changed, 19 insertions(+) (limited to 'WebCore/bindings') diff --git a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp b/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp index b7c6132..7fd865c 100644 --- a/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp +++ b/WebCore/bindings/v8/DerivedSourcesAllInOne.cpp @@ -192,8 +192,13 @@ #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" diff --git a/WebCore/bindings/v8/V8DOMWrapper.cpp b/WebCore/bindings/v8/V8DOMWrapper.cpp index 4b0e895..5a6b901 100644 --- a/WebCore/bindings/v8/V8DOMWrapper.cpp +++ b/WebCore/bindings/v8/V8DOMWrapper.cpp @@ -39,7 +39,12 @@ #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 V8DOMWrapper::getEventListener(Node* node, v8::Local V8DOMWrapper::getEventListener(SVGElementInstance* element, v8::Local value, bool isAttribute, ListenerLookupType lookup) { return getEventListener(element->correspondingElement(), value, isAttribute, lookup); } +#endif +#endif PassRefPtr V8DOMWrapper::getEventListener(AbstractWorker* worker, v8::Local value, bool isAttribute, ListenerLookupType lookup) { diff --git a/WebCore/bindings/v8/V8DOMWrapper.h b/WebCore/bindings/v8/V8DOMWrapper.h index 2257688..b5587d5 100644 --- a/WebCore/bindings/v8/V8DOMWrapper.h +++ b/WebCore/bindings/v8/V8DOMWrapper.h @@ -242,6 +242,9 @@ namespace WebCore { static PassRefPtr getEventListener(V8Proxy* proxy, v8::Local value, bool isAttribute, ListenerLookupType lookup); +#if PLATFORM(ANDROID) +// TODO: upstream XPATH guard. +#if ENABLE(XPATH) // XPath-related utilities static RefPtr getXPathNSResolver(v8::Handle 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 -- cgit v1.1