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

Issue 60203008: Remove the mode getter/setter for in-band text tracks (Closed)

Created:
7 years, 1 month ago by philipj_slow
Modified:
7 years, 1 month ago
CC:
blink-reviews, jamesr, nessy, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove the mode getter/setter for in-band text tracks TextTrack::setMode() is virtual and overridden by InbandTextTrack to forward all the way down to Chromium's WebInbandTextTrackImpl, where it is simply stored. However, the getter is not virtual and does not ever retrieve the value, so all of this is elaborate dead code. Because InbandTextTrack::setMode() first called TextTrack::setMode(), this assymetry between getting and setting for in-band tracks didn't actually break anything, and the relevant tests still pass. In addition, in-band tracks should not need to know about the mode, they simply provide cues for Blink, whether or not they are rendered can be left an internal matter. The Chromium side can be removed after a Blink roll, after which WebInbandTextTrack::Mode can finally be removed as well. BUG=315476 TEST=LayoutTests/media/track/opera/interfaces/TextTrack/mode.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161456

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -49 lines) Patch
M Source/core/html/track/InbandTextTrack.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/track/InbandTextTrack.cpp View 1 chunk +0 lines, -17 lines 0 comments Download
M Source/core/html/track/TextTrack.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/track/TextTrack.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/media/InbandTextTrackPrivate.h View 2 chunks +0 lines, -6 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/web/InbandTextTrackPrivateImpl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/web/InbandTextTrackPrivateImpl.cpp View 1 chunk +0 lines, -10 lines 0 comments Download
M public/web/WebInbandTextTrack.h View 2 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
philipj_slow
Jochen, can you take this, since it touches public/web?
7 years, 1 month ago (2013-11-06 08:28:10 UTC) #1
jochen (gone - plz use gerrit)
is it possible to add a test for this? At least to make sure that ...
7 years, 1 month ago (2013-11-06 10:58:34 UTC) #2
philipj_slow
On 2013/11/06 10:58:34, jochen wrote: > is it possible to add a test for this? ...
7 years, 1 month ago (2013-11-06 11:37:13 UTC) #3
jochen (gone - plz use gerrit)
but there was nothing that checked that if you set the mode, you can also ...
7 years, 1 month ago (2013-11-06 11:49:22 UTC) #4
jochen (gone - plz use gerrit)
but there was nothing that checked that if you set the mode, you can also ...
7 years, 1 month ago (2013-11-06 11:49:22 UTC) #5
philipj_slow
On 2013/11/06 11:49:22, jochen wrote: > but there was nothing that checked that if you ...
7 years, 1 month ago (2013-11-06 11:58:32 UTC) #6
jochen (gone - plz use gerrit)
lgtm
7 years, 1 month ago (2013-11-06 12:03:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/60203008/1
7 years, 1 month ago (2013-11-06 12:05:06 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=15871
7 years, 1 month ago (2013-11-06 13:50:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/60203008/1
7 years, 1 month ago (2013-11-06 13:52:26 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-06 14:30:09 UTC) #11
Message was sent while issue was closed.
Change committed as 161456

Powered by Google App Engine
This is Rietveld 408576698