| Index: WebCore/bindings/dart/DartController.cpp
|
| ===================================================================
|
| --- WebCore/bindings/dart/DartController.cpp (revision 864)
|
| +++ WebCore/bindings/dart/DartController.cpp (working copy)
|
| @@ -74,10 +74,10 @@
|
| Dart_Handle library = Dart_LookupLibrary(Dart_NewString(targetLibrary));
|
| ASSERT(!Dart_IsError(library));
|
|
|
| - Dart_Handle cls = Dart_GetClass(library, Dart_NewString(targetClass));
|
| - ASSERT(!Dart_IsError(cls));
|
| + Dart_Handle target = targetClass ? Dart_GetClass(library, Dart_NewString(targetClass)) : library;
|
| + ASSERT(!Dart_IsError(target));
|
|
|
| - Dart_SetField(cls, Dart_NewString(targetField), value);
|
| + Dart_SetField(target, Dart_NewString(targetField), value);
|
| }
|
|
|
| static void initDOMIsolate()
|
| @@ -93,7 +93,7 @@
|
| Dart_LibraryImportLibrary(core, html, Dart_Null());
|
|
|
| // Setup configuration closures
|
| - copyValue(html, "_printClosure", "dart:coreimpl", "PrintImplementation", "_printClosure");
|
| + copyValue(html, "_printClosure", "dart:core", 0, "_printClosure");
|
| copyValue(html, "_timerFactoryClosure", "dart:isolate", "_TimerFactory", "_factory");
|
| }
|
|
|
|
|