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

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

Issue 32583003: Remove HTMLMediaElement.startTime (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@mediaidl
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLMediaElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 6bbaa55e159f88b6aba19211a46898769f8962ff..e51a051faec42386bd9aa951f0fecf7f88803293 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -1982,11 +1982,6 @@ void HTMLMediaElement::setCurrentTime(double time, ExceptionState& es)
seek(time, es);
}
-double HTMLMediaElement::startTime() const
-{
- return 0;
-}
-
double HTMLMediaElement::initialTime() const
{
if (m_fragmentStartTime != MediaPlayer::invalidTime())
@@ -3059,7 +3054,7 @@ void HTMLMediaElement::mediaPlayerTimeChanged()
if (loop() && !m_mediaController) {
m_sentEndEvent = false;
// then seek to the earliest possible position of the media resource and abort these steps.
- seek(startTime(), IGNORE_EXCEPTION);
+ seek(0, IGNORE_EXCEPTION);
} else {
// If the media element does not have a current media controller, and the media element
// has still ended playback, and the direction of playback is still forwards, and paused
@@ -3829,7 +3824,7 @@ bool HTMLMediaElement::isBlockedOnMediaController() const
// position relative to the MediaController's timeline or after the end of the media resource
// relative to the MediaController's timeline.
double mediaControllerPosition = m_mediaController->currentTime();
- if (mediaControllerPosition < startTime() || mediaControllerPosition > startTime() + duration())
+ if (mediaControllerPosition < 0 || mediaControllerPosition > duration())
return true;
return false;
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLMediaElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698