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

Unified Diff: Source/bindings/dart/custom/DartDOMStringListCustom.cpp

Issue 26789007: Add a native subtype of function that uses the native C++ class hierarchy to check if an element (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit/
Patch Set: Created 7 years, 2 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: Source/bindings/dart/custom/DartDOMStringListCustom.cpp
===================================================================
--- Source/bindings/dart/custom/DartDOMStringListCustom.cpp (revision 1437)
+++ Source/bindings/dart/custom/DartDOMStringListCustom.cpp (working copy)
@@ -11,9 +11,10 @@
PassRefPtr<DOMStringList> DartDOMStringList::toNative(Dart_Handle handle, Dart_Handle& exception)
{
- DartDOMData* domData = DartDOMData::current();
- if (DartDOMWrapper::instanceOf<DartDOMStringList>(domData, handle))
+ if (DartDOMWrapper::subtypeOf(handle, DartDOMStringList::dartClassId)) {
+ DartDOMData* domData = DartDOMData::current();
return DartDOMWrapper::unwrapDartWrapper<DartDOMStringList>(domData, handle, exception);
+ }
Vector<Dart_Handle> elements;
DartUtilities::extractListElements(handle, exception, elements);

Powered by Google App Engine
This is Rietveld 408576698