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

Unified Diff: Source/core/html/shadow/MediaControlElementTypes.cpp

Issue 1274273003: Oilpan: handle MediaControls like the GCed object it is. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: Source/core/html/shadow/MediaControlElementTypes.cpp
diff --git a/Source/core/html/shadow/MediaControlElementTypes.cpp b/Source/core/html/shadow/MediaControlElementTypes.cpp
index 387020444635f3e000ee38183c073b1a765d4819..0c8d6f3e9d5fcb643dcf25905c34ec18735d7366 100644
--- a/Source/core/html/shadow/MediaControlElementTypes.cpp
+++ b/Source/core/html/shadow/MediaControlElementTypes.cpp
@@ -68,7 +68,7 @@ MediaControlElementType mediaControlElementType(Node* node)
}
MediaControlElement::MediaControlElement(MediaControls& mediaControls, MediaControlElementType displayType, HTMLElement* element)
- : m_mediaControls(mediaControls)
+ : m_mediaControls(&mediaControls)
, m_displayType(displayType)
, m_element(element)
, m_isWanted(true)
@@ -118,6 +118,7 @@ void MediaControlElement::setDisplayType(MediaControlElementType displayType)
DEFINE_TRACE(MediaControlElement)
{
+ visitor->trace(m_mediaControls);
visitor->trace(m_element);
}

Powered by Google App Engine
This is Rietveld 408576698