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

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: mark NodeFilter Dependent 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
« no previous file with comments | « Source/bindings/v8/DOMDataStore.h ('k') | Source/bindings/v8/UnsafePersistent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/DOMWrapperMap.h
diff --git a/Source/bindings/v8/DOMWrapperMap.h b/Source/bindings/v8/DOMWrapperMap.h
index 53d0206f319919a6b51d2f803837dcb781d1546b..469450089e3fc9c5ee3aba3c40725d63786808f1 100644
--- a/Source/bindings/v8/DOMWrapperMap.h
+++ b/Source/bindings/v8/DOMWrapperMap.h
@@ -63,6 +63,11 @@ public:
return true;
}
+ void setReference(const v8::Persistent<v8::Object>& parent, KeyType* key, v8::Isolate* isolate)
+ {
+ m_map.get(key).setReferenceFrom(parent, isolate);
+ }
+
bool containsKey(KeyType* key)
{
return m_map.find(key) != m_map.end();
« no previous file with comments | « Source/bindings/v8/DOMDataStore.h ('k') | Source/bindings/v8/UnsafePersistent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698