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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScopedPersistent.h

Issue 1952893003: Implement custom element construction and some 'define' checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not expose CustomElementsRegistry to isolated worlds. Created 4 years, 7 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: third_party/WebKit/Source/bindings/core/v8/ScopedPersistent.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScopedPersistent.h b/third_party/WebKit/Source/bindings/core/v8/ScopedPersistent.h
index c28339917b31265d43dfcc179d910c5f8251116c..01f24378a6da2e7867585cbcc658d4de95fc8042 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScopedPersistent.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScopedPersistent.h
@@ -72,6 +72,11 @@ public:
m_handle.SetWeak(parameters, callback, type);
}
+ void setWeak()
+ {
+ m_handle.SetWeak();
+ }
+
void clearWeak()
{
m_handle.template ClearWeak<void>();
@@ -91,7 +96,7 @@ public:
m_handle.Reset();
}
- void setReference(const v8::Persistent<v8::Object>& parent, v8::Isolate* isolate)
+ void setReference(const v8::Persistent<v8::Object>& parent, v8::Isolate* isolate) const
{
isolate->SetReference(parent, m_handle);
}

Powered by Google App Engine
This is Rietveld 408576698