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

Issue 594493003: Remove HTMLMediaElement::setPausedInternal() (Closed)

Created:
6 years, 3 months ago by philipj_slow
Modified:
6 years, 3 months ago
Reviewers:
fs
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Project:
blink
Visibility:
Public.

Description

Remove HTMLMediaElement::setPausedInternal() The bits in updatePlayState() could have been inlined into stop(), but none of it is useful: - isPlaying is always false because of userCancelledLoad() -> clearMediaPlayer(), so webMediaPlayer()->pause() is dead code. - refreshCachedTime() will do nothing for the same reason. - m_playbackProgressTimer.stop() is done by stopPeriodicTimers(). - mediaControls()->playbackStopped() is pointless because the document is no longer doing layout/rendering. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182422

Patch Set 1 #

Total comments: 1

Patch Set 2 : m_pausedInternal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -24 lines) Patch
M Source/core/html/HTMLMediaElement.h View 1 2 chunks +0 lines, -5 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 5 chunks +1 line, -19 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
philipj_slow
PTAL
6 years, 3 months ago (2014-09-22 12:23:15 UTC) #2
fs
LGTM w/ nit https://codereview.chromium.org/594493003/diff/1/Source/core/html/HTMLMediaElement.h File Source/core/html/HTMLMediaElement.h (right): https://codereview.chromium.org/594493003/diff/1/Source/core/html/HTMLMediaElement.h#newcode569 Source/core/html/HTMLMediaElement.h:569: bool m_pausedInternal : 1; Nit: Remove ...
6 years, 3 months ago (2014-09-22 12:31:05 UTC) #3
philipj_slow
On 2014/09/22 12:31:05, fs wrote: > LGTM w/ nit > > https://codereview.chromium.org/594493003/diff/1/Source/core/html/HTMLMediaElement.h > File Source/core/html/HTMLMediaElement.h ...
6 years, 3 months ago (2014-09-22 13:04:48 UTC) #4
philipj_slow
m_pausedInternal
6 years, 3 months ago (2014-09-22 13:06:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594493003/20001
6 years, 3 months ago (2014-09-22 13:07:44 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 14:53:10 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 182422

Powered by Google App Engine
This is Rietveld 408576698