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

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

Issue 847493002: Simplify insertion of text track container (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControls.cpp
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp
index 4c693c5c3e338a5f0f0062a53912d7e09f8d151a..d5a7aa83e4c5ef7f7ed781dc509d4231e873f5d8 100644
--- a/Source/core/html/shadow/MediaControls.cpp
+++ b/Source/core/html/shadow/MediaControls.cpp
@@ -541,10 +541,7 @@ void MediaControls::createTextTrackDisplay()
m_textDisplayContainer = textDisplayContainer.get();
// Insert it before (behind) all other control elements.
- if (m_overlayPlayButton)
- m_overlayEnclosure->insertBefore(textDisplayContainer.release(), m_overlayPlayButton);
- else
- m_overlayEnclosure->insertBefore(textDisplayContainer.release(), m_overlayCastButton);
+ m_overlayEnclosure->insertBefore(textDisplayContainer.release(), m_overlayEnclosure->firstChild());
}
void MediaControls::showTextTrackDisplay()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698