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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControls.h

Issue 2736853003: Media: fix memory leak because of the document holding on an EventListener. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/html/shadow/MediaControls.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.h b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
index b2046b6cbf97cd441b9544e5aaa4bb1c7126c58c..4d04fc60e4f9e5605b3bba381c8c5dd22e96cc17 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.h
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
@@ -159,6 +159,8 @@ class CORE_EXPORT MediaControls final : public HTMLDivElement {
bool containsRelatedTarget(Event*);
// Methods called by MediaControlsMediaEventListener.
+ void onInsertedIntoDocument();
+ void onRemovedFromDocument();
void onVolumeChange();
void onFocusIn();
void onTimeUpdate();
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698