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

Unified Diff: Source/web/WebBindings.cpp

Issue 125043004: Remove world type from hasInstance() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/web/WebArrayBufferConverter.cpp ('k') | Source/web/WebBlob.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebBindings.cpp
diff --git a/Source/web/WebBindings.cpp b/Source/web/WebBindings.cpp
index eb369e5e1b274e9c819fe5851141c24b55aeb9a8..3ddba39b852660dc113fb88d68a0b8002bb275fe 100644
--- a/Source/web/WebBindings.cpp
+++ b/Source/web/WebBindings.cpp
@@ -219,7 +219,7 @@ static bool getRangeImpl(NPObject* object, WebRange* webRange, v8::Isolate* isol
if (!V8Range::wrapperTypeInfo.equals(toWrapperTypeInfo(v8Object)))
return false;
- Range* native = V8Range::hasInstanceInAnyWorld(v8Object, isolate) ? V8Range::toNative(v8Object) : 0;
+ Range* native = V8Range::hasInstance(v8Object, isolate) ? V8Range::toNative(v8Object) : 0;
if (!native)
return false;
@@ -240,7 +240,7 @@ static bool getNodeImpl(NPObject* object, WebNode* webNode, v8::Isolate* isolate
v8::Handle<v8::Object> v8Object = v8::Local<v8::Object>::New(isolate, v8NPObject->v8Object);
if (v8Object.IsEmpty())
return false;
- Node* native = V8Node::hasInstanceInAnyWorld(v8Object, isolate) ? V8Node::toNative(v8Object) : 0;
+ Node* native = V8Node::hasInstance(v8Object, isolate) ? V8Node::toNative(v8Object) : 0;
if (!native)
return false;
@@ -261,7 +261,7 @@ static bool getElementImpl(NPObject* object, WebElement* webElement, v8::Isolate
v8::Handle<v8::Object> v8Object = v8::Local<v8::Object>::New(isolate, v8NPObject->v8Object);
if (v8Object.IsEmpty())
return false;
- Element* native = V8Element::hasInstanceInAnyWorld(v8Object, isolate) ? V8Element::toNative(v8Object) : 0;
+ Element* native = V8Element::hasInstance(v8Object, isolate) ? V8Element::toNative(v8Object) : 0;
if (!native)
return false;
@@ -282,7 +282,7 @@ static bool getArrayBufferImpl(NPObject* object, WebArrayBuffer* arrayBuffer, v8
v8::Handle<v8::Object> v8Object = v8::Local<v8::Object>::New(isolate, v8NPObject->v8Object);
if (v8Object.IsEmpty())
return false;
- ArrayBuffer* native = V8ArrayBuffer::hasInstanceInAnyWorld(v8Object, isolate) ? V8ArrayBuffer::toNative(v8Object) : 0;
+ ArrayBuffer* native = V8ArrayBuffer::hasInstance(v8Object, isolate) ? V8ArrayBuffer::toNative(v8Object) : 0;
if (!native)
return false;
@@ -303,7 +303,7 @@ static bool getArrayBufferViewImpl(NPObject* object, WebArrayBufferView* arrayBu
v8::Handle<v8::Object> v8Object = v8::Local<v8::Object>::New(isolate, v8NPObject->v8Object);
if (v8Object.IsEmpty())
return false;
- ArrayBufferView* native = V8ArrayBufferView::hasInstanceInAnyWorld(v8Object, isolate) ? V8ArrayBufferView::toNative(v8Object) : 0;
+ ArrayBufferView* native = V8ArrayBufferView::hasInstance(v8Object, isolate) ? V8ArrayBufferView::toNative(v8Object) : 0;
if (!native)
return false;
« no previous file with comments | « Source/web/WebArrayBufferConverter.cpp ('k') | Source/web/WebBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698