summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-06-22 15:51:02 -0700
committerFeng Qian <fqian@google.com>2009-06-22 15:51:02 -0700
commit616ad0c2b4a8561fcf943605dd2b64725bc41145 (patch)
tree65baac4c52509f5fc51630691d335be43dff5e2d /WebCore/bindings
parent9964d8875dca4f6db8bc668043fbcb9a966b8627 (diff)
downloadexternal_webkit-616ad0c2b4a8561fcf943605dd2b64725bc41145.zip
external_webkit-616ad0c2b4a8561fcf943605dd2b64725bc41145.tar.gz
external_webkit-616ad0c2b4a8561fcf943605dd2b64725bc41145.tar.bz2
Fix V8 build.
Diffstat (limited to 'WebCore/bindings')
-rw-r--r--WebCore/bindings/v8/ScriptController.cpp16
-rw-r--r--WebCore/bindings/v8/ScriptObject.cpp2
-rw-r--r--WebCore/bindings/v8/V8DOMMap.cpp2
3 files changed, 20 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/ScriptController.cpp b/WebCore/bindings/v8/ScriptController.cpp
index 9ecf3ab..833c99f 100644
--- a/WebCore/bindings/v8/ScriptController.cpp
+++ b/WebCore/bindings/v8/ScriptController.cpp
@@ -32,7 +32,12 @@
#include "config.h"
#include "ScriptController.h"
+#if PLATFORM(CHROMIUM)
#include "ChromiumBridge.h"
+#elif PLATFORM(ANDROID)
+#include "PluginView.h"
+#endif
+
#include "CString.h"
#include "Document.h"
#include "DOMWindow.h"
@@ -261,6 +266,7 @@ PassScriptInstance ScriptController::createScriptInstanceForWidget(Widget* widge
{
ASSERT(widget);
+#if PLATFORM(CHROMIUM)
if (widget->isFrameView())
return 0;
@@ -268,6 +274,16 @@ PassScriptInstance ScriptController::createScriptInstanceForWidget(Widget* widge
if (!npObject)
return 0;
+#elif PLATFORM(ANDROID)
+ if (!widget->isPluginView())
+ return 0;
+
+ PluginView* pluginView = static_cast<PluginView*>(widget);
+ NPObject* npObject = pluginView->getNPObject();
+ if (!npObject)
+ return 0;
+#endif
+
// Frame Memory Management for NPObjects
// -------------------------------------
// NPObjects are treated differently than other objects wrapped by JS.
diff --git a/WebCore/bindings/v8/ScriptObject.cpp b/WebCore/bindings/v8/ScriptObject.cpp
index dd44acb..59316f0 100644
--- a/WebCore/bindings/v8/ScriptObject.cpp
+++ b/WebCore/bindings/v8/ScriptObject.cpp
@@ -119,7 +119,9 @@ bool ScriptGlobalObject::set(ScriptState* scriptState, const char* name, const S
bool ScriptGlobalObject::set(ScriptState* scriptState, const char* name, InspectorController* value)
{
ScriptScope scope(scriptState);
+#if !PLATFORM(ANDROID)
scope.global()->Set(v8::String::New(name), V8Proxy::ToV8Object(V8ClassIndex::INSPECTORCONTROLLER, value));
+#endif
return scope.success();
}
diff --git a/WebCore/bindings/v8/V8DOMMap.cpp b/WebCore/bindings/v8/V8DOMMap.cpp
index 60ce32b..4645c02 100644
--- a/WebCore/bindings/v8/V8DOMMap.cpp
+++ b/WebCore/bindings/v8/V8DOMMap.cpp
@@ -277,8 +277,10 @@ private:
InternalDOMWrapperMap<Node> m_staticDomNodeMap;
InternalDOMWrapperMap<void> m_staticDomObjectMap;
InternalDOMWrapperMap<void> m_staticActiveDomObjectMap;
+#if ENABLE(SVG)
InternalDOMWrapperMap<SVGElementInstance> m_staticDomSvgElementInstanceMap;
InternalDOMWrapperMap<void> m_staticDomSvgObjectWithContextMap;
+#endif
};
DEFINE_STATIC_LOCAL(WTF::ThreadSpecific<NonMainThreadSpecificDOMData>, threadSpecificDOMData, ());