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

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

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
index 006bbf4825808aea14907a25222bb9dcb95e0847..3512051bf191613a1f4e16497cccfa9af04b78cf 100644
--- a/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.cpp
@@ -39,6 +39,11 @@ AnimationWorklet* WindowAnimationWorklet::animationWorklet() {
return m_animationWorklet.get();
}
+void WindowAnimationWorklet::frameDestroyed() {
+ m_animationWorklet.clear();
+ DOMWindowProperty::frameDestroyed();
+}
+
DEFINE_TRACE(WindowAnimationWorklet) {
visitor->trace(m_animationWorklet);
Supplement<LocalDOMWindow>::trace(visitor);
« no previous file with comments | « third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698