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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2617433002: Use the standard downcasting macros for downcasting TextTrack objects. (Closed)
Patch Set: . Created 3 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 | third_party/WebKit/Source/core/html/track/CueTimeline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index ececc0032f57cb4c49c5cadaef855936f65caa32..23c359710c350911bc2a7c19859fe2e3a14a6d75 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -2687,10 +2687,9 @@ void HTMLMediaElement::removeTextTrack(WebInbandTextTrack* webTrack) {
if (!m_textTracks)
return;
- // This cast is safe because we created the InbandTextTrack with the
- // WebInbandTextTrack passed to mediaPlayerDidAddTextTrack.
- InbandTextTrack* textTrack =
- static_cast<InbandTextTrack*>(webTrack->client());
+ // This cast is safe because InbandTextTrack is the only concrete
+ // implementation of WebInbandTextTrackClient.
+ InbandTextTrack* textTrack = toInbandTextTrack(webTrack->client());
if (!textTrack)
return;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/track/CueTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698