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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h

Issue 2482393002: [worklets] Fixes leak document leak for AnimationWorklet. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WindowAnimationWorklet_h 5 #ifndef WindowAnimationWorklet_h
6 #define WindowAnimationWorklet_h 6 #define WindowAnimationWorklet_h
7 7
8 #include "core/frame/DOMWindowProperty.h" 8 #include "core/frame/DOMWindowProperty.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
(...skipping 10 matching lines...) Expand all
21 : public GarbageCollected<WindowAnimationWorklet>, 21 : public GarbageCollected<WindowAnimationWorklet>,
22 public Supplement<LocalDOMWindow>, 22 public Supplement<LocalDOMWindow>,
23 public DOMWindowProperty { 23 public DOMWindowProperty {
24 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); 24 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet);
25 25
26 public: 26 public:
27 static WindowAnimationWorklet& from(LocalDOMWindow&); 27 static WindowAnimationWorklet& from(LocalDOMWindow&);
28 static Worklet* animationWorklet(DOMWindow&); 28 static Worklet* animationWorklet(DOMWindow&);
29 AnimationWorklet* animationWorklet(); 29 AnimationWorklet* animationWorklet();
30 30
31 void frameDestroyed() override;
32
31 DECLARE_TRACE(); 33 DECLARE_TRACE();
32 34
33 private: 35 private:
34 explicit WindowAnimationWorklet(LocalDOMWindow&); 36 explicit WindowAnimationWorklet(LocalDOMWindow&);
35 static const char* supplementName(); 37 static const char* supplementName();
36 38
37 Member<AnimationWorklet> m_animationWorklet; 39 Member<AnimationWorklet> m_animationWorklet;
38 }; 40 };
39 41
40 } // namespace blink 42 } // namespace blink
41 43
42 #endif // WindowAnimationWorklet_h 44 #endif // WindowAnimationWorklet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698