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

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

Issue 2803243002: Use a ResizeObserver to determine default font-size for text tracks (Closed)
Patch Set: Update media/track/track-cue-rendering.html Created 3 years, 8 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/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index f0b87749979238b2104643cf58d6ff82cfaca0f5..361a29b1ad3f4f5483fb75eaeb8ecbe0f5d560d2 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -3647,8 +3647,7 @@ TextTrackContainer& HTMLMediaElement::ensureTextTrackContainer() {
if (firstChild && firstChild->isTextTrackContainer())
return toTextTrackContainer(*firstChild);
- TextTrackContainer* textTrackContainer =
- TextTrackContainer::create(document());
+ TextTrackContainer* textTrackContainer = TextTrackContainer::create(*this);
// The text track container should be inserted before the media controls,
// so that they are rendered behind them.

Powered by Google App Engine
This is Rietveld 408576698