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

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

Issue 2725893002: Media Controls timeline: immediately update current time display (Closed)
Patch Set: Mark media/controls-drag-timebar-rendering.html failing, see crbug.com/699096 Created 3 years, 9 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
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 8bc5052f76bbfc6dbdc72146772a104c0f6a140d..73ac65b2156e8e06d59acc2c83d42889e1141bc0 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
@@ -807,9 +807,9 @@ void MediaControlTimelineElement::defaultEventHandler(Event* event) {
if (mediaElement().seekable()->contain(time))
mediaElement().setCurrentTime(time);
- LayoutSliderItem slider = LayoutSliderItem(toLayoutSlider(layoutObject()));
- if (!slider.isNull() && slider.inDragMode())
- mediaControls().updateCurrentTimeDisplay();
+ // Provide immediate feedback (without waiting for media to seek) to make it
+ // easier for user to seek to a precise time.
+ mediaControls().updateCurrentTimeDisplay();
}
bool MediaControlTimelineElement::willRespondToMouseClickEvents() {
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698