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

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

Issue 68183003: Remove HTMLMediaElement::minTimeSeekable()/maxTimeSeekable() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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') | no next file » | 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 113582a4983cf06f4aae571acc0da01ef3fe46e5..b9e0507ab40e0ac96921939227c7c504b17800ad 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -3174,8 +3174,12 @@ PassRefPtr<TimeRanges> HTMLMediaElement::played()
PassRefPtr<TimeRanges> HTMLMediaElement::seekable() const
{
- double maxSeekable = maxTimeSeekable();
- return maxSeekable ? TimeRanges::create(0, maxSeekable) : TimeRanges::create();
+ if (m_player) {
+ double maxTimeSeekable = m_player->maxTimeSeekable();
+ if (maxTimeSeekable)
+ return TimeRanges::create(0, maxTimeSeekable);
+ }
+ return TimeRanges::create();
}
bool HTMLMediaElement::potentiallyPlaying() const
@@ -3237,16 +3241,6 @@ bool HTMLMediaElement::pausedForUserInteraction() const
return false;
}
-double HTMLMediaElement::minTimeSeekable() const
-{
- return 0;
-}
-
-double HTMLMediaElement::maxTimeSeekable() const
-{
- return m_player ? m_player->maxTimeSeekable() : 0;
-}
-
void HTMLMediaElement::updateVolume()
{
if (!m_player)
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698