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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp

Issue 2903703003: Use wrapper tracing for worklets. (Closed)
Patch Set: Separating in two CLs Created 3 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/modules/compositorworker/AnimatorDefinition.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp b/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp
index 225d14b74fd2bf915c44838c4d42fbaf58f60d87..b36aa1f5a7efa83741bff01ff002d00ec2dba252 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp
@@ -15,10 +15,16 @@ namespace blink {
AnimatorDefinition::AnimatorDefinition(v8::Isolate* isolate,
v8::Local<v8::Function> constructor,
v8::Local<v8::Function> animate)
- : constructor_(isolate, constructor), animate_(isolate, animate) {}
+ : constructor_(isolate, this, constructor),
+ animate_(isolate, this, animate) {}
AnimatorDefinition::~AnimatorDefinition() {}
+DEFINE_TRACE_WRAPPERS(AnimatorDefinition) {
+ visitor->TraceWrappers(constructor_.Cast<v8::Value>());
+ visitor->TraceWrappers(animate_.Cast<v8::Value>());
+}
+
v8::Local<v8::Function> AnimatorDefinition::ConstructorLocal(
v8::Isolate* isolate) {
return constructor_.NewLocal(isolate);

Powered by Google App Engine
This is Rietveld 408576698