Commit e8a0940a authored by mlamouri's avatar mlamouri Committed by Commit bot

Media Controls: invalidate volume slider when value changes.

Otherwise, the painting will not take into consideration the new
value.

BUG=677903

Review-Url: https://codereview.chromium.org/2616343004
Cr-Commit-Position: refs/heads/master@{#442864}
parent 7caec88b
......@@ -856,8 +856,12 @@ bool MediaControlVolumeSliderElement::willRespondToMouseClickEvents() {
}
void MediaControlVolumeSliderElement::setVolume(double volume) {
if (value().toDouble() != volume)
setValue(String::number(volume));
if (value().toDouble() == volume)
return;
setValue(String::number(volume));
if (LayoutObject* layoutObject = this->layoutObject())
layoutObject->setShouldDoFullPaintInvalidation();
}
bool MediaControlVolumeSliderElement::keepEventInNode(Event* event) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment