| Index: lib/dom/templates/dom/native/cpp_callback_header.template
|
| diff --git a/lib/dom/templates/dom/native/cpp_callback_header.template b/lib/dom/templates/dom/native/cpp_callback_header.template
|
| index 5ae8d909a2474e55cada7cfb3819183d83f451b1..d5b6a53b15cd525ace776270b770056c96538fe5 100644
|
| --- a/lib/dom/templates/dom/native/cpp_callback_header.template
|
| +++ b/lib/dom/templates/dom/native/cpp_callback_header.template
|
| @@ -18,8 +18,10 @@ class Dart$(INTERFACE) : public $(INTERFACE), public ActiveDOMCallback {
|
| public:
|
| typedef $(INTERFACE) NativeType;
|
|
|
| - static PassRefPtr<NativeType> toNative(Dart_Handle object, Dart_Handle& exception)
|
| + static PassRefPtr<NativeType> create(Dart_Handle object, DartUtilities::ConversionFlag flag, Dart_Handle& exception)
|
| {
|
| + if (flag == DartUtilities::ConvertNullToDefaultValue && Dart_IsNull(object))
|
| + return 0;
|
| return adoptRef(new Dart$(INTERFACE)(object, exception, DartUtilities::scriptExecutionContext()));
|
| }
|
| $HANDLERS
|
|
|