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

Unified Diff: Source/bindings/v8/DOMWrapperMap.h

Issue 26792002: Reland: Reland: Implement new Blink IDL attribute [SetReference] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: setWrapperReference_reupl Created 7 years, 2 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
Index: Source/bindings/v8/DOMWrapperMap.h
diff --git a/Source/bindings/v8/DOMWrapperMap.h b/Source/bindings/v8/DOMWrapperMap.h
index 963b679bb97598854e198a42bfbef25b540f6ca1..a7169809951d656e7c3e3cf9b6df614e8ca264a9 100644
--- a/Source/bindings/v8/DOMWrapperMap.h
+++ b/Source/bindings/v8/DOMWrapperMap.h
@@ -63,6 +63,11 @@ public:
return true;
}
+ void setReferenceFrom(const v8::Persistent<v8::Object>& parent, KeyType* key, v8::Isolate* isolate)
+ {
+ m_map.get(key).setReferenceFrom(parent, isolate);
haraken 2013/10/17 00:47:31 It looks OK to use UnsafePersistent in DOMWrapperM
kouhei (in TOK) 2013/10/17 02:30:09 Discussed offline. This is also called from DOMWr
+ }
+
bool containsKey(KeyType* key)
{
return m_map.find(key) != m_map.end();

Powered by Google App Engine
This is Rietveld 408576698