Changeset 181279 in webkit


Ignore:
Timestamp:
Mar 9, 2015 1:22:15 PM (9 years ago)
Author:
roger_fong@apple.com
Message:

Only call showControls if controls are hidden.
https://bugs.webkit.org/show_bug.cgi?id=142496.
<rdar://problem/20083732>
Reviewed by Dean Jackson.

  • Modules/mediacontrols/mediaControlsApple.js:

(Controller.prototype.handleWrapperMouseMove):
(Controller.prototype.controlsAreHidden):
Controls are hidden if the ‘show’ class name is not present,
not if the ‘hidden’ class name is.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181278 r181279  
    2020        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
    2121        (WebCore::MediaPlayerPrivateGStreamer::load):
     22
     232015-03-09  Roger Fong  <roger_fong@apple.com>
     24
     25        Only call showControls if controls are hidden.
     26        https://bugs.webkit.org/show_bug.cgi?id=142496.
     27        <rdar://problem/20083732>
     28
     29        Reviewed by Dean Jackson.
     30
     31        * Modules/mediacontrols/mediaControlsApple.js:
     32        (Controller.prototype.handleWrapperMouseMove):
     33        (Controller.prototype.controlsAreHidden):
     34        Controls are hidden if the ‘show’ class name is not present,
     35        not if the ‘hidden’ class name is.
    2236
    23372015-03-09  Roger Fong  <roger_fong@apple.com>
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css

    r181270 r181279  
    140140video::-webkit-media-controls-play-button.paused,
    141141audio::-webkit-media-controls-play-button.paused {
    142     background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 15" fill="white"><path d="M 0,.5 12,7 0,13.5 z"/></svg>');
     142    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 15" fill="white"><path d="M 0,0 12,7 0,13 z"/></svg>');
    143143    width: 12px;
    144144}
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js

    r181198 r181279  
    677677    handleWrapperMouseMove: function(event)
    678678    {
    679         this.showControls();
     679        if (this.controlsAreHidden())
     680            this.showControls();
    680681        this.resetHideControlsTimer();
    681682
     
    12311232    controlsAreHidden: function()
    12321233    {
    1233         return !this.isAudio() && this.controls.panel.classList.contains(this.ClassNames.hidden);
     1234        return !this.isAudio() && !this.controls.panel.classList.contains(this.ClassNames.show);
    12341235    },
    12351236
Note: See TracChangeset for help on using the changeset viewer.