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

Unified Diff: Source/bindings/v8/Dictionary.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/bindings/tests/results/V8TestTypedefs.cpp ('k') | Source/bindings/v8/IDBBindingUtilities.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/Dictionary.cpp
diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
index 8f1f35ba0dc373514bb58657a56496815b47cdf8..060474160d73a337d22a82777c2d167eed6bea3b 100644
--- a/Source/bindings/v8/Dictionary.cpp
+++ b/Source/bindings/v8/Dictionary.cpp
@@ -337,7 +337,7 @@ bool Dictionary::get(const String& key, RefPtr<Storage>& value) const
return false;
value = 0;
- if (V8Storage::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8Storage::hasInstance(v8Value, m_isolate))
value = V8Storage::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -423,7 +423,7 @@ bool Dictionary::get(const String& key, RefPtr<Uint8Array>& value) const
return false;
value = 0;
- if (V8Uint8Array::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8Uint8Array::hasInstance(v8Value, m_isolate))
value = V8Uint8Array::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -435,7 +435,7 @@ bool Dictionary::get(const String& key, RefPtr<ArrayBufferView>& value) const
return false;
value = 0;
- if (V8ArrayBufferView::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8ArrayBufferView::hasInstance(v8Value, m_isolate))
value = V8ArrayBufferView::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -447,7 +447,7 @@ bool Dictionary::get(const String& key, RefPtr<MIDIPort>& value) const
return false;
value = 0;
- if (V8MIDIPort::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8MIDIPort::hasInstance(v8Value, m_isolate))
value = V8MIDIPort::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -459,7 +459,7 @@ bool Dictionary::get(const String& key, RefPtr<MediaKeyError>& value) const
return false;
value = 0;
- if (V8MediaKeyError::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8MediaKeyError::hasInstance(v8Value, m_isolate))
value = V8MediaKeyError::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -491,7 +491,7 @@ bool Dictionary::get(const String& key, RefPtr<SpeechRecognitionError>& value) c
return false;
value = 0;
- if (V8SpeechRecognitionError::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8SpeechRecognitionError::hasInstance(v8Value, m_isolate))
value = V8SpeechRecognitionError::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -503,7 +503,7 @@ bool Dictionary::get(const String& key, RefPtr<SpeechRecognitionResult>& value)
return false;
value = 0;
- if (V8SpeechRecognitionResult::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8SpeechRecognitionResult::hasInstance(v8Value, m_isolate))
value = V8SpeechRecognitionResult::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -515,7 +515,7 @@ bool Dictionary::get(const String& key, RefPtr<SpeechRecognitionResultList>& val
return false;
value = 0;
- if (V8SpeechRecognitionResultList::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8SpeechRecognitionResultList::hasInstance(v8Value, m_isolate))
value = V8SpeechRecognitionResultList::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
@@ -527,7 +527,7 @@ bool Dictionary::get(const String& key, RefPtr<MediaStream>& value) const
return false;
value = 0;
- if (V8MediaStream::hasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ if (V8MediaStream::hasInstance(v8Value, m_isolate))
value = V8MediaStream::toNative(v8::Handle<v8::Object>::Cast(v8Value));
return true;
}
« no previous file with comments | « Source/bindings/tests/results/V8TestTypedefs.cpp ('k') | Source/bindings/v8/IDBBindingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698