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

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

Issue 2499883002: Media Controls: handle 'timeupdate', 'play' and 'pause' via an EventListener. (Closed)
Patch Set: fix repaint test Created 4 years 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 26c96f482d36418c0f2e33185ac42c97bb136068..d45eab3cdcce8973ee9007b6d9073df3a715311d 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -2524,9 +2524,6 @@ void HTMLMediaElement::playbackProgressTimerFired(TimerBase*) {
if (!playbackRate())
return;
- if (!m_paused && mediaControls())
- mediaControls()->playbackProgressed();
-
cueTimeline().updateActiveCues(currentTime());
}
@@ -3349,11 +3346,8 @@ void HTMLMediaElement::updatePlayState() {
m_autoplayHelper->playbackStarted();
}
- if (mediaControls())
- mediaControls()->playbackStarted();
startPlaybackProgressTimer();
m_playing = true;
-
} else { // Should not be playing right now
if (isPlaying) {
webMediaPlayer()->pause();
@@ -3365,9 +3359,6 @@ void HTMLMediaElement::updatePlayState() {
double time = currentTime();
if (time > m_lastSeekTime)
addPlayedRange(m_lastSeekTime, time);
-
- if (mediaControls())
- mediaControls()->playbackStopped();
}
if (layoutObject())

Powered by Google App Engine
This is Rietveld 408576698