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; |