Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: webkit/port/bindings/v8/v8_helpers.cpp

Issue 14031: Fix for http://code.google.com/p/chromium/issues/detail?id=5409.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/port/bindings/v8/v8_custom.h ('k') | webkit/port/bindings/v8/v8_npobject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/bindings/v8/v8_helpers.cpp
===================================================================
--- webkit/port/bindings/v8/v8_helpers.cpp (revision 6781)
+++ webkit/port/bindings/v8/v8_helpers.cpp (working copy)
@@ -38,13 +38,10 @@
#include "DOMWindow.h"
-void WrapNPObject(v8::Handle<v8::Object> obj, NPObject* npobj) {
- ASSERT(obj->InternalFieldCount() >= 3);
+using WebCore::V8Custom;
+void WrapNPObject(v8::Handle<v8::Object> obj, NPObject* npobj) {
WebCore::V8Proxy::SetDOMWrapper(obj, WebCore::V8ClassIndex::NPOBJECT, npobj);
-
- // Create a JS object as a hash map for functions
- obj->SetInternalField(2, v8::Object::New());
}
v8::Local<v8::Context> GetV8Context(NPP npp, NPObject* npobj) {
« no previous file with comments | « webkit/port/bindings/v8/v8_custom.h ('k') | webkit/port/bindings/v8/v8_npobject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698