| Index: Source/bindings/dart/custom/DartFormDataCustom.cpp
|
| diff --git a/Source/bindings/dart/custom/DartFormDataCustom.cpp b/Source/bindings/dart/custom/DartFormDataCustom.cpp
|
| index 79646abec4e9edbf3306fd0f387f7af5b45930f7..3566608307d49ef9f74567f0b23cf78c42e56754 100644
|
| --- a/Source/bindings/dart/custom/DartFormDataCustom.cpp
|
| +++ b/Source/bindings/dart/custom/DartFormDataCustom.cpp
|
| @@ -37,26 +37,6 @@ namespace WebCore {
|
|
|
| namespace DartFormDataInternal {
|
|
|
| -void constructorCallback(Dart_NativeArguments args)
|
| -{
|
| - Dart_Handle exception = 0;
|
| - {
|
| - HTMLFormElement* form = 0;
|
| - if (!Dart_IsNull(Dart_GetNativeArgument(args, 0))) {
|
| - form = DartHTMLFormElement::toNative(Dart_GetNativeArgument(args, 0), exception);
|
| - if (exception)
|
| - goto fail;
|
| - }
|
| -
|
| - DartDOMWrapper::returnToDart<DartFormData>(args, DOMFormData::create(form));
|
| - return;
|
| - }
|
| -
|
| -fail:
|
| - Dart_ThrowException(exception);
|
| - ASSERT_NOT_REACHED();
|
| -}
|
| -
|
| void appendCallback(Dart_NativeArguments args)
|
| {
|
| Dart_Handle exception = 0;
|
| @@ -80,7 +60,7 @@ void appendCallback(Dart_NativeArguments args)
|
| return;
|
| }
|
|
|
| - Blob* blob = DartBlob::toNative(arg2, exception);
|
| + Blob* blob = DartBlob::toNativeWithNullCheck(arg2, exception);
|
| if (exception)
|
| goto fail;
|
|
|
|
|