changeset 10106:1524422d8c14 jdk-9+142

8166775: Audio slider works incorrectly for short files Reviewed-by: ghb, mbilla, kcr
author asrivastava
date Fri, 21 Oct 2016 11:27:14 +0530
parents e7cb6f58416d
children a423466d2265 6edd0c3c01f4
files modules/javafx.web/src/main/native/Source/WebCore/Modules/mediacontrols/mediaControlsBase.js
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.web/src/main/native/Source/WebCore/Modules/mediacontrols/mediaControlsBase.js	Thu Oct 20 14:28:50 2016 -0700
+++ b/modules/javafx.web/src/main/native/Source/WebCore/Modules/mediacontrols/mediaControlsBase.js	Fri Oct 21 11:27:14 2016 +0530
@@ -1021,8 +1021,16 @@
         this.controls.panel.classList.remove(this.ClassNames.show);
     },
 
+    controlsAreAlwaysVisible: function()
+    {
+        return this.controls.panel.classList.contains(this.ClassNames.noVideo);
+    },
+
     controlsAreHidden: function()
     {
+        if (this.controlsAreAlwaysVisible())
+            return false;
+
         return !this.controls.panel.classList.contains(this.ClassNames.show) || this.controls.panel.classList.contains(this.ClassNames.hidden);
     },