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

Changeset 187317 in webkit


Ignore:
Timestamp:
Jul 24, 2015, 12:54:25 AM (11 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r187203. rdar://problem/21012688

Location:
branches/safari-601.1-branch/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1-branch/Source/WebCore/ChangeLog

    r187313 r187317  
     12015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r187203. rdar://problem/21012688
     4
     5    2015-07-22  Dean Jackson  <dino@apple.com>
     6
     7            Video controls, though hidden, are still interactive when in PiP
     8            https://bugs.webkit.org/show_bug.cgi?id=147216
     9            <rdar://problem/21012688>
     10
     11            Reviewed by Simon Fraser.
     12
     13            Explicitly add the PiP class to the controls container so that
     14            we can hang a pointer-events: none off it.
     15
     16            * Modules/mediacontrols/mediaControlsiOS.css:
     17            (video::-webkit-media-controls-panel.picture-in-picture): Add a pointer-events: none.
     18            * Modules/mediacontrols/mediaControlsiOS.js:
     19            (ControllerIOS.prototype.handlePresentationModeChange): Add/remove a PiP class
     20            to the controls panel when necessary.
     21
    1222015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
    223
  • branches/safari-601.1-branch/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css

    r186934 r187317  
    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,
  • branches/safari-601.1-branch/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js

    r187071 r187317  
    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.