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

Changeset 185761 in webkit


Ignore:
Timestamp:
Jun 19, 2015, 12:10:51 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Fullscreen view should not update bounds of video when in PiP.
https://bugs.webkit.org/show_bug.cgi?id=146134

Patch by Jeremy Jones <jeremyj@apple.com> on 2015-06-19
Reviewed by Darin Adler.

Don't update bounds on video layer when it is not a child.

  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

(-[WebAVVideoLayer setBounds:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r185756 r185761  
     12015-06-19  Jeremy Jones  <jeremyj@apple.com>
     2
     3        Fullscreen view should not update bounds of video when in PiP.
     4        https://bugs.webkit.org/show_bug.cgi?id=146134
     5
     6        Reviewed by Darin Adler.
     7
     8        Don't update bounds on video layer when it is not a child.
     9
     10        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     11        (-[WebAVVideoLayer setBounds:]):
     12
    1132015-06-19  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r185754 r185761  
    694694    [super setBounds:bounds];
    695695
    696     [_videoSublayer setPosition:CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds))];
    697     [_videoSublayer setBounds:bounds];
     696    if ([_videoSublayer superlayer] == self) {
     697        [_videoSublayer setPosition:CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds))];
     698        [_videoSublayer setBounds:bounds];
     699    }
    698700}
    699701
Note: See TracChangeset for help on using the changeset viewer.