Changeset 184794 in webkit
- Timestamp:
- May 22, 2015, 2:01:39 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r184793 r184794 1 2015-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 1 19 2015-05-22 Chris Dumez <cdumez@apple.com> 2 20 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js
r184722 r184794 824 824 { 825 825 var opacity = window.getComputedStyle(this.controls.panel).opacity; 826 if (!parseInt(opacity) && !this.controlsAlwaysVisible() ) {826 if (!parseInt(opacity) && !this.controlsAlwaysVisible() && this.video.controls) { 827 827 this.base.removeChild(this.controls.inlinePlaybackPlaceholder); 828 828 this.base.removeChild(this.controls.panel); … … 1334 1334 setPlaying: function(isPlaying) 1335 1335 { 1336 if ( this.showInlinePlaybackPlaceholderOnly())1336 if (!this.video.controls) 1337 1337 return; 1338 1338 … … 1377 1377 { 1378 1378 this.updateShouldListenForPlaybackTargetAvailabilityEvent(); 1379 if ( this.showInlinePlaybackPlaceholderOnly())1379 if (!this.video.controls) 1380 1380 return; 1381 1381 … … 1935 1935 this.setNeedsUpdateForDisplayedWidth(); 1936 1936 this.updateLayoutForDisplayedWidth(); 1937 this.reconnectControls(); 1937 1938 this.updateWirelessTargetPickerButton(); 1938 1939 }, … … 1964 1965 this.updateWirelessPlaybackStatus(); 1965 1966 this.setNeedsTimelineMetricsUpdate(); 1966 if (this.showInlinePlaybackPlaceholderOnly())1967 this.reconnectControls();1968 1967 }, 1969 1968 … … 1992 1991 }, 1993 1992 1994 showInlinePlaybackPlaceholderOnly: function(event)1995 {1996 return this.currentPlaybackTargetIsWireless() && !this.video.controls;1997 },1998 1999 1993 get scrubbing() 2000 1994 {
Note:
See TracChangeset
for help on using the changeset viewer.