⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187203 in webkit


Ignore:
Timestamp:
Jul 22, 2015, 6:47:00 PM (11 years ago)
Author:
dino@apple.com
Message:

Video controls, though hidden, are still interactive when in PiP
https://bugs.webkit.org/show_bug.cgi?id=147216
<rdar://problem/21012688>

Reviewed by Simon Fraser.

Explicitly add the PiP class to the controls container so that
we can hang a pointer-events: none off it.

  • Modules/mediacontrols/mediaControlsiOS.css:

(video::-webkit-media-controls-panel.picture-in-picture): Add a pointer-events: none.

  • Modules/mediacontrols/mediaControlsiOS.js:

(ControllerIOS.prototype.handlePresentationModeChange): Add/remove a PiP class
to the controls panel when necessary.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r187202 r187203  
     12015-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
    1182015-07-22  Commit Queue  <commit-queue@webkit.org>
    219
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css

    r186837 r187203  
    176176}
    177177
     178video::-webkit-media-controls-panel.picture-in-picture {
     179    pointer-events: none;
     180}
     181
    178182video::-webkit-media-controls-rewind-button,
    179183audio::-webkit-media-controls-rewind-button,
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js

    r186979 r187203  
    589589        switch (presentationMode) {
    590590            case 'inline':
     591                this.controls.panel.classList.remove(this.ClassNames.pictureInPicture);
    591592                this.controls.panelContainer.classList.remove(this.ClassNames.pictureInPicture);
    592593                this.controls.inlinePlaybackPlaceholder.classList.add(this.ClassNames.hidden);
     
    598599                break;
    599600            case 'picture-in-picture':
     601                this.controls.panel.classList.add(this.ClassNames.pictureInPicture);
    600602                this.controls.panelContainer.classList.add(this.ClassNames.pictureInPicture);
    601603                this.controls.inlinePlaybackPlaceholder.classList.add(this.ClassNames.pictureInPicture);
     
    610612                break;
    611613            default:
     614                this.controls.panel.classList.remove(this.ClassNames.pictureInPicture);
    612615                this.controls.panelContainer.classList.remove(this.ClassNames.pictureInPicture);
    613616                this.controls.inlinePlaybackPlaceholder.classList.remove(this.ClassNames.pictureInPicture);
Note: See TracChangeset for help on using the changeset viewer.