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

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

Issue 2728203002: Remove WRAPPER_VISITOR_SPECIAL_CLASSES (Closed)
Patch Set: Change CanTraceWrappers Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698