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

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

Issue 3195: Use static type information from IDL to streamline the wrapping and unwrappin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months 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
Index: webkit/port/bindings/v8/v8_npobject.cpp
===================================================================
--- webkit/port/bindings/v8/v8_npobject.cpp (revision 2436)
+++ webkit/port/bindings/v8/v8_npobject.cpp (working copy)
@@ -59,8 +59,8 @@
V8HTMLEmbedElement::HasInstance(args.Holder()) ||
V8HTMLObjectElement::HasInstance(args.Holder())) {
// The holder object is a subtype of HTMLPlugInElement.
- HTMLPlugInElement* imp = V8Proxy::FastToNativeObject<HTMLPlugInElement>(
- V8ClassIndex::NODE, args.Holder());
+ HTMLPlugInElement* imp =
+ V8Proxy::DOMWrapperToNode<HTMLPlugInElement>(args.Holder());
v8::Handle<v8::Object> instance = imp->getInstance();
npobject = V8Proxy::ToNativeObject<NPObject>(
V8ClassIndex::NPOBJECT, instance);
@@ -223,8 +223,8 @@
static v8::Handle<v8::Value> NPObjectSetProperty(v8::Local<v8::Object> self,
NPIdentifier ident,
v8::Local<v8::Value> value) {
- NPObject* npobject = V8Proxy::ToNativeObject<NPObject>(V8ClassIndex::NPOBJECT,
- self);
+ NPObject* npobject =
+ V8Proxy::ToNativeObject<NPObject>(V8ClassIndex::NPOBJECT, self);
// Verify that our wrapper wasn't using a NPObject which
// has already been deleted.

Powered by Google App Engine
This is Rietveld 408576698