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

Unified Diff: third_party/WebKit/Source/core/html/track/InbandTextTrack.h

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
Index: third_party/WebKit/Source/core/html/track/InbandTextTrack.h
diff --git a/third_party/WebKit/Source/core/html/track/InbandTextTrack.h b/third_party/WebKit/Source/core/html/track/InbandTextTrack.h
index 4ee005cae8d8718355b6e76a898baf531c7724dc..bbb1de51991acc6e9abb68f7ab345dff42195427 100644
--- a/third_party/WebKit/Source/core/html/track/InbandTextTrack.h
+++ b/third_party/WebKit/Source/core/html/track/InbandTextTrack.h
@@ -29,7 +29,7 @@
#include "core/html/track/TextTrack.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebInbandTextTrackClient.h"
-#include "wtf/RefPtr.h"
+#include "wtf/Assertions.h"
namespace blink {
class WebInbandTextTrack;
@@ -47,7 +47,7 @@ class InbandTextTrack final : public TextTrack,
void setTrackList(TextTrackList*) override;
private:
- InbandTextTrack(WebInbandTextTrack*);
+ explicit InbandTextTrack(WebInbandTextTrack*);
void addWebVTTCue(double,
double,
@@ -58,6 +58,10 @@ class InbandTextTrack final : public TextTrack,
WebInbandTextTrack* m_webTrack;
};
+// All concrete implementations of WebInbandTextTrackClient are
+// InbandTextTracks.
+DEFINE_TYPE_CASTS(InbandTextTrack, WebInbandTextTrackClient, track, true, true);
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698