Changeset 187203 in webkit
- Timestamp:
- Jul 22, 2015, 6:47:00 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Modules/mediacontrols/mediaControlsiOS.css (modified) (1 diff)
-
Modules/mediacontrols/mediaControlsiOS.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r187202 r187203 1 2015-07-22 Dean Jackson <dino@apple.com> 2 3 Video controls, though hidden, are still interactive when in PiP 4 https://bugs.webkit.org/show_bug.cgi?id=147216 5 <rdar://problem/21012688> 6 7 Reviewed by Simon Fraser. 8 9 Explicitly add the PiP class to the controls container so that 10 we can hang a pointer-events: none off it. 11 12 * Modules/mediacontrols/mediaControlsiOS.css: 13 (video::-webkit-media-controls-panel.picture-in-picture): Add a pointer-events: none. 14 * Modules/mediacontrols/mediaControlsiOS.js: 15 (ControllerIOS.prototype.handlePresentationModeChange): Add/remove a PiP class 16 to the controls panel when necessary. 17 1 18 2015-07-22 Commit Queue <commit-queue@webkit.org> 2 19 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css
r186837 r187203 176 176 } 177 177 178 video::-webkit-media-controls-panel.picture-in-picture { 179 pointer-events: none; 180 } 181 178 182 video::-webkit-media-controls-rewind-button, 179 183 audio::-webkit-media-controls-rewind-button, -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js
r186979 r187203 589 589 switch (presentationMode) { 590 590 case 'inline': 591 this.controls.panel.classList.remove(this.ClassNames.pictureInPicture); 591 592 this.controls.panelContainer.classList.remove(this.ClassNames.pictureInPicture); 592 593 this.controls.inlinePlaybackPlaceholder.classList.add(this.ClassNames.hidden); … … 598 599 break; 599 600 case 'picture-in-picture': 601 this.controls.panel.classList.add(this.ClassNames.pictureInPicture); 600 602 this.controls.panelContainer.classList.add(this.ClassNames.pictureInPicture); 601 603 this.controls.inlinePlaybackPlaceholder.classList.add(this.ClassNames.pictureInPicture); … … 610 612 break; 611 613 default: 614 this.controls.panel.classList.remove(this.ClassNames.pictureInPicture); 612 615 this.controls.panelContainer.classList.remove(this.ClassNames.pictureInPicture); 613 616 this.controls.inlinePlaybackPlaceholder.classList.remove(this.ClassNames.pictureInPicture);
Note:
See TracChangeset
for help on using the changeset viewer.