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); |
} |