Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: Source/bindings/dart/DartDOMWrapper.h

Issue 185643003: Changes to use the modified dart API for (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1750/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/dart/DartEventListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | Source/bindings/dart/DartEventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698