Chromium Code Reviews| Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
| diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
| index e9fabbd5886d4468209fc928f17e43109e612810..c4c4eccd8658f3ef384a59e0788f340d653c5054 100644 |
| --- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
| +++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
| @@ -9,6 +9,7 @@ |
| #include "core/workers/ThreadedWorkletGlobalScope.h" |
| #include "modules/compositorworker/Animator.h" |
| #include "modules/compositorworker/AnimatorDefinition.h" |
| +#include "platform/bindings/ScriptWrappable.h" |
| namespace blink { |
| @@ -25,8 +26,7 @@ class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope { |
| WorkerThread*); |
| ~AnimationWorkletGlobalScope() override; |
| DECLARE_TRACE(); |
| - |
| - void Dispose() final; |
| + DECLARE_TRACE_WRAPPERS(); |
| void registerAnimator(const String& name, |
| const ScriptValue& ctorValue, |
| @@ -41,11 +41,12 @@ class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope { |
| v8::Isolate*, |
| WorkerThread*); |
| - typedef HeapHashMap<String, Member<AnimatorDefinition>> DefinitionMap; |
| - DefinitionMap m_animatorDefinitions; |
| + typedef HeapHashMap<String, TraceWrapperMember<AnimatorDefinition>> |
| + DefinitionMap; |
| + DefinitionMap animator_definitions_; |
| - typedef HeapVector<Member<Animator>> AnimatorList; |
| - AnimatorList m_animators; |
| + typedef HeapVector<TraceWrapperMember<Animator>> AnimatorList; |
| + AnimatorList animators_; |
|
haraken
2017/05/25 04:22:12
Do you need to trace both animator_definitions_ an
majidvp
2017/05/25 20:16:57
hmmmm, I think it is better to trace them both her
|
| }; |
| } // namespace blink |