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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp

Issue 1415683009: Support earliest seekable time in WMPI. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more androidfixes. Created 5 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
Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
index b83a6018955b9eb8afb3615648e7f4725bf1d7a9..81a6710562ecd65209dc301d6852355f104c1b7a 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
@@ -408,8 +408,6 @@ void MediaControlTimelineElement::defaultEventHandler(Event* event)
double time = value().toDouble();
if (event->type() == EventTypeNames::input) {
- // FIXME: This will need to take the timeline offset into consideration
- // once that concept is supported, see https://crbug.com/312699
if (mediaElement().seekable()->contain(time))
mediaElement().setCurrentTime(time);
}
@@ -424,6 +422,11 @@ bool MediaControlTimelineElement::willRespondToMouseClickEvents()
return inDocument() && document().isActive();
}
+void MediaControlTimelineElement::setEarliestPosition(double earliestTime)
+{
+ setFloatingPointAttribute(minAttr, earliestTime);
+}
+
void MediaControlTimelineElement::setPosition(double currentTime)
{
setValue(String::number(currentTime));

Powered by Google App Engine
This is Rietveld 408576698