Changeset 184794 in webkit


Ignore:
Timestamp:
May 22, 2015, 2:01:39 PM (10 years ago)
Author:
eric.carlson@apple.com
Message:

[Mac] Don't show default controls after playing to wireless target
https://bugs.webkit.org/show_bug.cgi?id=145317

Reviewed by Dean Jackson.

  • Modules/mediacontrols/mediaControlsApple.js:

(Controller.prototype.handlePanelTransitionEnd): Don't show controls unless the video
element has the 'controls' attribute.
(Controller.prototype.setPlaying): Check this.video.controls directly because we never want
to show controls unless the attribute is present.
(Controller.prototype.showControls): Ditto.
(Controller.prototype.updateWirelessPlaybackStatus): Call reconnectControls.
(Controller.prototype.handleWirelessPlaybackChange): Don't call reconnectControls, it will
happen in updateWirelessPlaybackStatus.
(Controller.prototype.showInlinePlaybackPlaceholderOnly): Deleted.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r184793 r184794  
     12015-05-22  Eric Carlson  <eric.carlson@apple.com>
     2
     3        [Mac] Don't show default controls after playing to wireless target
     4        https://bugs.webkit.org/show_bug.cgi?id=145317
     5
     6        Reviewed by Dean Jackson.
     7
     8        * Modules/mediacontrols/mediaControlsApple.js:
     9        (Controller.prototype.handlePanelTransitionEnd): Don't show controls unless the video
     10        element has the 'controls' attribute.
     11        (Controller.prototype.setPlaying): Check this.video.controls directly because we never want
     12        to show controls unless the attribute is present.
     13        (Controller.prototype.showControls): Ditto.
     14        (Controller.prototype.updateWirelessPlaybackStatus): Call reconnectControls.
     15        (Controller.prototype.handleWirelessPlaybackChange): Don't call reconnectControls, it will
     16        happen in updateWirelessPlaybackStatus.
     17        (Controller.prototype.showInlinePlaybackPlaceholderOnly): Deleted.
     18
    1192015-05-22  Chris Dumez  <cdumez@apple.com>
    220
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js

    r184722 r184794  
    824824    {
    825825        var opacity = window.getComputedStyle(this.controls.panel).opacity;
    826         if (!parseInt(opacity) && !this.controlsAlwaysVisible()) {
     826        if (!parseInt(opacity) && !this.controlsAlwaysVisible() && this.video.controls) {
    827827            this.base.removeChild(this.controls.inlinePlaybackPlaceholder);
    828828            this.base.removeChild(this.controls.panel);
     
    13341334    setPlaying: function(isPlaying)
    13351335    {
    1336         if (this.showInlinePlaybackPlaceholderOnly())
     1336        if (!this.video.controls)
    13371337            return;
    13381338
     
    13771377    {
    13781378        this.updateShouldListenForPlaybackTargetAvailabilityEvent();
    1379         if (this.showInlinePlaybackPlaceholderOnly())
     1379        if (!this.video.controls)
    13801380            return;
    13811381
     
    19351935        this.setNeedsUpdateForDisplayedWidth();
    19361936        this.updateLayoutForDisplayedWidth();
     1937        this.reconnectControls();
    19371938        this.updateWirelessTargetPickerButton();
    19381939    },
     
    19641965        this.updateWirelessPlaybackStatus();
    19651966        this.setNeedsTimelineMetricsUpdate();
    1966         if (this.showInlinePlaybackPlaceholderOnly())
    1967             this.reconnectControls();
    19681967    },
    19691968
     
    19921991    },
    19931992
    1994     showInlinePlaybackPlaceholderOnly: function(event)
    1995     {
    1996         return this.currentPlaybackTargetIsWireless() && !this.video.controls;
    1997     },
    1998 
    19991993    get scrubbing()
    20001994    {
Note: See TracChangeset for help on using the changeset viewer.