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

Unified Diff: Source/bindings/core/v8/DOMDataStore.h

Issue 460673002: bindings: Changes DOMWrapperMap::KeyType to ScriptWrappableBase*. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/core/v8/DOMWrapperMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/DOMDataStore.h
diff --git a/Source/bindings/core/v8/DOMDataStore.h b/Source/bindings/core/v8/DOMDataStore.h
index 00fb70d629e333496bf0018fd6c5af6af70ac62a..4d5081be36a4d7bcd102972a56aeac745b22cc09 100644
--- a/Source/bindings/core/v8/DOMDataStore.h
+++ b/Source/bindings/core/v8/DOMDataStore.h
@@ -204,9 +204,19 @@ private:
}
bool m_isMainWorld;
- DOMWrapperMap<void> m_wrapperMap;
+ DOMWrapperMap<ScriptWrappableBase> m_wrapperMap;
};
+template <>
+inline void DOMWrapperMap<ScriptWrappableBase>::PersistentValueMapTraits::Dispose(
+ v8::Isolate* isolate,
+ v8::UniquePersistent<v8::Object> value,
+ ScriptWrappableBase* key)
+{
+ RELEASE_ASSERT(!value.IsEmpty()); // See crbug.com/368095.
+ releaseObject(v8::Local<v8::Object>::New(isolate, value));
+}
+
} // namespace blink
#endif // DOMDataStore_h
« no previous file with comments | « no previous file | Source/bindings/core/v8/DOMWrapperMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698