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

Unified Diff: Source/bindings/v8/UnsafePersistent.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/DOMWrapperMap.h ('k') | Source/bindings/v8/V8DOMWrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/UnsafePersistent.h
diff --git a/Source/bindings/v8/UnsafePersistent.h b/Source/bindings/v8/UnsafePersistent.h
index 6f512a26f299e2689e08532e476710423266e52b..6f297b50f45fc0b8064843cb1f30db499a733bb7 100644
--- a/Source/bindings/v8/UnsafePersistent.h
+++ b/Source/bindings/v8/UnsafePersistent.h
@@ -88,6 +88,11 @@ public:
return handle;
}
+ void setReferenceFrom(const v8::Persistent<v8::Object>& parent, v8::Isolate* isolate)
+ {
+ isolate->SetReference(parent, *persistent());
+ }
+
void dispose()
{
persistent()->Dispose();
« no previous file with comments | « Source/bindings/v8/DOMWrapperMap.h ('k') | Source/bindings/v8/V8DOMWrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698