summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-08-14 05:37:30 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-08-14 05:37:30 -0700
commita2e6a074c9aaa2cb54aa85a656f7411c2a73f29e (patch)
tree38bec907fa00c32721e5cf55f70865fcca6f1b8d /WebCore/bindings
parentd9d6ce217832bcffb8c0e17889754a4e6e2d5068 (diff)
parent96a60f91e36885ed9213dc31f2f4cc0369575eb3 (diff)
downloadexternal_webkit-a2e6a074c9aaa2cb54aa85a656f7411c2a73f29e.zip
external_webkit-a2e6a074c9aaa2cb54aa85a656f7411c2a73f29e.tar.gz
external_webkit-a2e6a074c9aaa2cb54aa85a656f7411c2a73f29e.tar.bz2
Merge change 21263 into master-webkit-merge
* changes: And some more bindings fixes.
Diffstat (limited to 'WebCore/bindings')
-rw-r--r--WebCore/bindings/v8/NPV8Object.cpp11
-rw-r--r--WebCore/bindings/v8/V8DOMMap.h1
-rw-r--r--WebCore/bindings/v8/V8GCController.cpp2
-rw-r--r--WebCore/bindings/v8/V8Index.cpp2
-rw-r--r--WebCore/bindings/v8/V8Proxy.cpp5
5 files changed, 16 insertions, 5 deletions
diff --git a/WebCore/bindings/v8/NPV8Object.cpp b/WebCore/bindings/v8/NPV8Object.cpp
index 0fd9f89..cb2a6c1 100644
--- a/WebCore/bindings/v8/NPV8Object.cpp
+++ b/WebCore/bindings/v8/NPV8Object.cpp
@@ -28,7 +28,7 @@
#include "NPV8Object.h"
-if PLATFORM(CHROMIUM)
+#if PLATFORM(CHROMIUM)
// TODO(andreip): upstream
#include "ChromiumBridge.h"
#endif
@@ -42,7 +42,11 @@ if PLATFORM(CHROMIUM)
#include "V8Helpers.h"
#include "V8NPUtils.h"
#include "V8Proxy.h"
+#if PLATFORM(CHROMIUM)
#include "bindings/npruntime.h"
+#else
+#include "bridge/npruntime.h"
+#endif
#include "npruntime_impl.h"
#include "npruntime_priv.h"
@@ -453,7 +457,12 @@ bool _NPN_Enumerate(NPP npp, NPObject* npObject, NPIdentifier** identifier, uint
v8::Handle<v8::Value> enumeratorObj = script->Run();
v8::Handle<v8::Function> enumerator = v8::Handle<v8::Function>::Cast(enumeratorObj);
v8::Handle<v8::Value> argv[] = { obj };
+#if PLATFORM(ANDROID)
+// TODO(benm): implement an arry size function on android
+ v8::Local<v8::Value> propsObj = enumerator->Call(v8::Handle<v8::Object>::Cast(enumeratorObj), 1, argv);
+#else
v8::Local<v8::Value> propsObj = enumerator->Call(v8::Handle<v8::Object>::Cast(enumeratorObj), ARRAYSIZE_UNSAFE(argv), argv);
+#endif
if (propsObj.IsEmpty())
return false;
diff --git a/WebCore/bindings/v8/V8DOMMap.h b/WebCore/bindings/v8/V8DOMMap.h
index 27a8007..754ac3a 100644
--- a/WebCore/bindings/v8/V8DOMMap.h
+++ b/WebCore/bindings/v8/V8DOMMap.h
@@ -97,6 +97,7 @@ namespace WebCore {
class Visitor {
public:
virtual void visitDOMWrapper(KeyType* key, v8::Persistent<v8::Object> object) = 0;
+ virtual ~Visitor() { }
};
};
diff --git a/WebCore/bindings/v8/V8GCController.cpp b/WebCore/bindings/v8/V8GCController.cpp
index a4e6b62..f3b1376 100644
--- a/WebCore/bindings/v8/V8GCController.cpp
+++ b/WebCore/bindings/v8/V8GCController.cpp
@@ -313,7 +313,7 @@ public:
{
#if PLATFORM(ANDROID)
// TODO(andreip): implement std::sort() and get rid of this.
- std::stable_sort<GrouperList>(m_grouper.begin(), m_grouper.end(), compareGrouperItem);
+ std::stable_sort<GrouperItem>(m_grouper.begin(), m_grouper.end(), compareGrouperItem);
#else
// Group by sorting by the group id.
std::sort(m_grouper.begin(), m_grouper.end());
diff --git a/WebCore/bindings/v8/V8Index.cpp b/WebCore/bindings/v8/V8Index.cpp
index 6e65d92..8f32256 100644
--- a/WebCore/bindings/v8/V8Index.cpp
+++ b/WebCore/bindings/v8/V8Index.cpp
@@ -185,7 +185,7 @@
#include "V8Range.h"
#include "V8RangeException.h"
#include "V8Rect.h"
-#iinclude "V8NodeIterator.h"
+#include "V8NodeIterator.h"
#include "V8TextMetrics.h"
#include "V8TreeWalker.h"
#include "V8StyleSheetList.h"
diff --git a/WebCore/bindings/v8/V8Proxy.cpp b/WebCore/bindings/v8/V8Proxy.cpp
index b13fc77..e2c1e98 100644
--- a/WebCore/bindings/v8/V8Proxy.cpp
+++ b/WebCore/bindings/v8/V8Proxy.cpp
@@ -32,6 +32,7 @@
#include "V8Proxy.h"
#include "CSSMutableStyleDeclaration.h"
+#include "CString.h"
#include "DOMObjectsInclude.h"
#include "DocumentLoader.h"
#include "FrameLoaderClient.h"
@@ -1292,14 +1293,14 @@ void V8Proxy::registerExtension(v8::Extension* extension, const String& schemeRe
{
registerExtensionWithV8(extension);
V8ExtensionInfo info = {schemeRestriction, 0, extension};
- m_extensions.push_back(info);
+ m_extensions.append(info);
}
void V8Proxy::registerExtension(v8::Extension* extension, int extensionGroup)
{
registerExtensionWithV8(extension);
V8ExtensionInfo info = {String(), extensionGroup, extension};
- m_extensions.push_back(info);
+ m_extensions.append(info);
}
bool V8Proxy::setContextDebugId(int debugId)