Index: Source/bindings/dart/DartDOMWrapper.h |
=================================================================== |
--- Source/bindings/dart/DartDOMWrapper.h (revision 168317) |
+++ Source/bindings/dart/DartDOMWrapper.h (working copy) |
@@ -267,10 +267,10 @@ |
} |
template <class BindingsClass> |
- static void wrapperWeakCallback(Dart_WeakPersistentHandle wrapper, void* peer) |
+ static void wrapperWeakCallback(Dart_Isolate isolate, Dart_WeakPersistentHandle wrapper, void* peer) |
{ |
typedef DartDOMWrapperTraits<BindingsClass> Traits; |
- DartDOMData* domData = DartDOMData::current(); |
+ DartDOMData* domData = reinterpret_cast<DartDOMData*>(Dart_IsolateData(isolate)); |
typename BindingsClass::NativeType* domObject = static_cast<typename BindingsClass::NativeType*>(peer); |
Dart_WeakPersistentHandle currentWrapper = Traits::MapTraits::domMap(domData)->get(domObject); |
// This could be an old wrapper which has been replaced with a custom element. |