[Media][GTK][EFL] Reduce style updates (painting) in controls
authorberto@igalia.com <berto@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Dec 2014 10:04:02 +0000 (10:04 +0000)
committerberto@igalia.com <berto@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Dec 2014 10:04:02 +0000 (10:04 +0000)
commit662cb81f8beaa253224a645f7cb60916739e69f1
treede66c93e9762283c9d0813d5278a1d4b4f904514
parenteed003b1e5377342665cb5bf6e6d2fb9b8a3fd80
[Media][GTK][EFL] Reduce style updates (painting) in controls
https://bugs.webkit.org/show_bug.cgi?id=137773

Reviewed by Carlos Garcia Campos.

Don't update media controls if they are not visible, and
initialize slider to a zero value.

* Modules/mediacontrols/mediaControlsBase.js:
(Controller.prototype.createControls):
(Controller.prototype.handleDurationChange):
(Controller.prototype.updateProgress):
(Controller.prototype.updateTime):
* Modules/mediacontrols/mediaControlsGtk.js:
(ControllerGtk.prototype.updateTime):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177015 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediacontrols/mediaControlsBase.js
Source/WebCore/Modules/mediacontrols/mediaControlsGtk.js