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

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

Issue 2725873002: Media: fix memory leak because of the document holding on an EventListener. (Closed)
Patch Set: event-based Created 3 years, 10 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 74805310d50a486754080001c24d9494b9eecfb0..c38bf9d2274e3308cb2635cf7166eb671f2ac280 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.h
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
@@ -166,6 +166,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();

Powered by Google App Engine
This is Rietveld 408576698