| Index: third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h
|
| index 388b12d0f66b483f800f8126a314f970fa7e907e..2caec00a0f34045f696447ca843088d6bd73dbb7 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h
|
| @@ -48,6 +48,10 @@ class CORE_EXPORT TraceWrapperBase {
|
| TraceWrapperBase() = default;
|
| virtual bool isScriptWrappable() const { return false; }
|
|
|
| + void markAndDispatchTraceWrappers(const WrapperVisitor* visitor) const {
|
| + visitor->dispatchTraceWrappers(this);
|
| + }
|
| +
|
| DECLARE_VIRTUAL_TRACE_WRAPPERS(){};
|
| };
|
|
|
| @@ -161,6 +165,11 @@ class CORE_EXPORT ScriptWrappable : public TraceWrapperBase {
|
| // ScriptWrappableVisitor::markWrapper(ScriptWrappable*, v8::Isolate*)
|
| void markWrapper(const WrapperVisitor*) const;
|
|
|
| + void markAndDispatchTraceWrappers(const WrapperVisitor* visitor) const {
|
| + visitor->markWrappersInAllWorlds(this);
|
| + visitor->dispatchTraceWrappers(this);
|
| + }
|
| +
|
| private:
|
| // These classes are exceptionally allowed to use mainWorldWrapper().
|
| friend class DOMDataStore;
|
|
|