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

Issue 1686063002: Remove unnecessary variable HTMLMediaElement::m_haveVisibleTextTrack (Closed)

Created:
4 years, 10 months ago by Srirama
Modified:
4 years, 10 months ago
Reviewers:
philipj_slow, fs
CC:
fs, blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, gasubic, mlamouri+watch-blink_chromium.org, philipj_slow, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary variable HTMLMediaElement::m_haveVisibleTextTrack m_haveVisibleTextTrack is just used in the function configureTextTrackDisplay, so use a local variable instead Committed: https://crrev.com/39245052a1de08122ae972abf0c5ac337168ba8f Cr-Commit-Position: refs/heads/master@{#374659}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -5 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 2 chunks +3 lines, -4 lines 3 comments Download

Messages

Total messages: 13 (7 generated)
Srirama
fs@opera.com: Please review changes in philipj@opera.com: Please review changes in https://codereview.chromium.org/1686063002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1686063002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode3368 ...
4 years, 10 months ago (2016-02-10 12:50:50 UTC) #3
fs
lgtm Maybe mention HTMLMediaElement in the subject (HTMLMediaElement::m_haveVisibleTextTrack if that doesn't overflow.) https://codereview.chromium.org/1686063002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ...
4 years, 10 months ago (2016-02-10 14:29:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686063002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686063002/1
4 years, 10 months ago (2016-02-10 14:55:03 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-10 15:01:10 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/39245052a1de08122ae972abf0c5ac337168ba8f Cr-Commit-Position: refs/heads/master@{#374659}
4 years, 10 months ago (2016-02-10 15:02:04 UTC) #12
philipj_slow
4 years, 10 months ago (2016-02-11 14:41:38 UTC) #13
Message was sent while issue was closed.
Post-commit LGTM

https://codereview.chromium.org/1686063002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right):

https://codereview.chromium.org/1686063002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:3368: if
(!haveVisibleTextTrack && !mediaControls())
On 2016/02/10 14:29:34, fs wrote:
> On 2016/02/10 at 12:50:50, Srirama wrote:
> > Local variable can be removed and use m_closedCaptionsVisible directly but i
> kept it for better readability. WDYT? should i remove it as well?
> 
> I don't mind either way. I think I agree that using the local is slightly more
> readable though.

WFM too

Powered by Google App Engine
This is Rietveld 408576698