Index: tools/dom/scripts/systemnative.py |
=================================================================== |
--- tools/dom/scripts/systemnative.py (revision 27780) |
+++ tools/dom/scripts/systemnative.py (working copy) |
@@ -416,18 +416,21 @@ |
' {\n' |
' if (!value)\n' |
' return Dart_Null();\n' |
- ' Dart_WeakPersistentHandle result = ' |
- ' DartDOMWrapper::lookupWrapper(isNode, value);\n' |
+ ' DartDOMData* domData = DartDOMData::current();\n' |
+ ' Dart_WeakPersistentHandle result =\n' |
+ ' DartDOMWrapper::lookupWrapper(domData, isNode, value);\n' |
' if (result)\n' |
' return Dart_HandleFromWeakPersistent(result);\n' |
' return createWrapper(value);\n' |
' }\n' |
- ' static void returnToDart(Dart_NativeArguments args,' |
+ ' static void returnToDart(Dart_NativeArguments args,\n' |
' NativeType* value)\n' |
' {\n' |
' if (value) {\n' |
- ' Dart_WeakPersistentHandle result = ' |
- ' DartDOMWrapper::lookupWrapper(isNode, value);\n' |
+ ' DartDOMData* domData = static_cast<DartDOMData*>(\n' |
+ ' Dart_GetNativeIsolateData(args));\n' |
+ ' Dart_WeakPersistentHandle result =\n' |
+ ' DartDOMWrapper::lookupWrapper(domData, isNode, value);\n' |
' if (result)\n' |
' Dart_SetWeakHandleReturnValue(args, result);\n' |
' else\n' |