Index: Source/bindings/dart/custom/DartHTMLOptionsCollectionCustom.cpp |
=================================================================== |
--- Source/bindings/dart/custom/DartHTMLOptionsCollectionCustom.cpp (revision 1437) |
+++ Source/bindings/dart/custom/DartHTMLOptionsCollectionCustom.cpp (working copy) |
@@ -57,8 +57,7 @@ |
goto fail; |
Dart_Handle elementArgument = Dart_GetNativeArgument(args, 2); |
- DartDOMData* domData = static_cast<DartDOMData*>(Dart_GetNativeIsolateData(args)); |
- if (!DartDOMWrapper::instanceOf<DartHTMLOptionElement>(domData, elementArgument)) { |
+ if (!DartDOMWrapper::subtypeOf(elementArgument, DartHTMLOptionElement::dartClassId)) { |
exception = DartDOMWrapper::exceptionCodeToDartException(TypeMismatchError); |
goto fail; |
} |