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

Issue 2783593002: Redraw media volume slider when it is moving (Closed)

Created:
3 years, 8 months ago by sabbakumov
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, CJ, mlamouri+watch-blink_chromium.org, nessy, Srirama
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Redraw media volume slider when it is moving Steps to reproduce: 1. Launch Chromium http://www.quirksmode.org/html5/tests/video.html 2. Try to change the video volume by dragging the volume slider while holding the mouse key. 3. The volume slider isn't updated. It updates only when the mouse button is released. BUG=677903 Review-Url: https://codereview.chromium.org/2783593002 Cr-Commit-Position: refs/heads/master@{#462310} Committed: https://chromium.googlesource.com/chromium/src/+/4d9872c0015abd0cac4cbaeeb36585109f1b13e8

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move volume slider invalidation to the slider event handler #

Patch Set 3 : Test for volume slider invalidation on input while dragging #

Patch Set 4 : Test for volume slider invalidation on input while dragging #

Total comments: 4

Patch Set 5 : Test the code modifications #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -1 line) Patch
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp View 1 2 3 4 3 chunks +54 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (19 generated)
sabbakumov
3 years, 8 months ago (2017-03-28 06:19:53 UTC) #3
mlamouri (slow - plz ping)
+lethalantidote@ FYI I think you might want to move this into the input event handler ...
3 years, 8 months ago (2017-03-28 14:25:10 UTC) #8
CJ
https://codereview.chromium.org/2783593002/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp File third_party/WebKit/Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/2783593002/diff/1/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp#newcode809 third_party/WebKit/Source/core/html/shadow/MediaControls.cpp:809: invalidate(m_muteButton); Is this necessary?
3 years, 8 months ago (2017-03-28 14:58:39 UTC) #10
sabbakumov
I've moved the slider invalidation to the event handler.
3 years, 8 months ago (2017-03-29 01:38:44 UTC) #11
mlamouri (slow - plz ping)
sgtm but can you add a test for this? a test with an expected file ...
3 years, 8 months ago (2017-03-30 19:28:02 UTC) #12
mlamouri (slow - plz ping)
On 2017/03/30 at 19:28:02, mlamouri wrote: > sgtm but can you add a test for ...
3 years, 8 months ago (2017-03-30 19:28:35 UTC) #13
sabbakumov
Added a unit test for a fix.
3 years, 8 months ago (2017-03-31 06:48:36 UTC) #15
mlamouri (slow - plz ping)
https://codereview.chromium.org/2783593002/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp (right): https://codereview.chromium.org/2783593002/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp#newcode539 third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp:539: volumeSlider->setVolume(0.5); I'm a bit confused: setVolume() doesn't call the ...
3 years, 8 months ago (2017-03-31 11:20:16 UTC) #16
sabbakumov
https://codereview.chromium.org/2783593002/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp File third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp (right): https://codereview.chromium.org/2783593002/diff/60001/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp#newcode539 third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp:539: volumeSlider->setVolume(0.5); On 2017/03/31 11:20:16, mlamouri wrote: > I'm a ...
3 years, 8 months ago (2017-04-03 04:12:45 UTC) #17
mlamouri (slow - plz ping)
lgtm assuming core/layout/ OWNERS are happy with the added virtual.
3 years, 8 months ago (2017-04-04 12:49:28 UTC) #18
sabbakumov
skobes@: Could you review the changes in LayoutObject.h please?
3 years, 8 months ago (2017-04-05 09:17:42 UTC) #27
skobes
rs lgtm
3 years, 8 months ago (2017-04-05 19:47:47 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2783593002/80001
3 years, 8 months ago (2017-04-06 01:22:14 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 01:39:05 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/4d9872c0015abd0cac4cbaeeb365...

Powered by Google App Engine
This is Rietveld 408576698