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

Unified Diff: Source/bindings/dart/custom/DartXMLHttpRequestCustom.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
« no previous file with comments | « Source/bindings/dart/custom/DartWebSocketCustom.cpp ('k') | Source/bindings/dart/gyp/dartium.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp
===================================================================
--- Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp (revision 1437)
+++ Source/bindings/dart/custom/DartXMLHttpRequestCustom.cpp (working copy)
@@ -134,17 +134,17 @@
Dart_Handle arg1 = Dart_GetNativeArgument(args, 1);
if (Dart_IsNull(arg1)) {
receiver->send(es);
- } else if (DartDOMWrapper::instanceOf<DartDocument>(domData, arg1)) {
+ } else if (DartDOMWrapper::subtypeOf(arg1, DartDocument::dartClassId)) {
Document* asDocument = DartDocument::toNative(arg1, exception);
if (exception)
goto fail;
receiver->send(asDocument, es);
- } else if (DartDOMWrapper::instanceOf<DartBlob>(domData, arg1)) {
+ } else if (DartDOMWrapper::subtypeOf(arg1, DartBlob::dartClassId)) {
Blob* asBlob = DartBlob::toNative(arg1, exception);
if (exception)
goto fail;
receiver->send(asBlob, es);
- } else if (DartDOMWrapper::instanceOf<DartFormData>(domData, arg1)) {
+ } else if (DartDOMWrapper::subtypeOf(arg1, DartFormData::dartClassId)) {
DOMFormData* asDOMFormData = DartFormData::toNative(arg1, exception);
if (exception)
goto fail;
« no previous file with comments | « Source/bindings/dart/custom/DartWebSocketCustom.cpp ('k') | Source/bindings/dart/gyp/dartium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698