Changeset 231856 in webkit


Ignore:
Timestamp:
May 16, 2018 11:47:26 AM (6 years ago)
Author:
bshafiei@apple.com
Message:

Cherry-pick r231814. rdar://problem/40267224

Provide UIView and UIImage for zoom transition
https://bugs.webkit.org/show_bug.cgi?id=185655
<rdar://problem/40267224>

Reviewed by Antoine Quint.

Provide a UIView* for the frameForPreviewItem to use as a source view.
Also implement the transitionImageForPreviewItem delegate, even though
we're returning nil.

  • UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: (-[_WKPreviewControllerDelegate previewController:frameForPreviewItem:inSourceView:]): (-[_WKPreviewControllerDelegate previewController:transitionImageForPreviewItem:contentRect:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231814 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-606.1.17-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-606.1.17-branch/Source/WebKit/ChangeLog

    r231855 r231856  
     12018-05-16  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r231814. rdar://problem/40267224
     4
     5    Provide UIView and UIImage for zoom transition
     6    https://bugs.webkit.org/show_bug.cgi?id=185655
     7    <rdar://problem/40267224>
     8   
     9    Reviewed by Antoine Quint.
     10   
     11    Provide a UIView* for the frameForPreviewItem to use as a source view.
     12    Also implement the transitionImageForPreviewItem delegate, even though
     13    we're returning nil.
     14   
     15    * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm:
     16    (-[_WKPreviewControllerDelegate previewController:frameForPreviewItem:inSourceView:]):
     17    (-[_WKPreviewControllerDelegate previewController:transitionImageForPreviewItem:contentRect:]):
     18   
     19    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     20
     21    2018-05-15  Dean Jackson  <dino@apple.com>
     22
     23            Provide UIView and UIImage for zoom transition
     24            https://bugs.webkit.org/show_bug.cgi?id=185655
     25            <rdar://problem/40267224>
     26
     27            Reviewed by Antoine Quint.
     28
     29            Provide a UIView* for the frameForPreviewItem to use as a source view.
     30            Also implement the transitionImageForPreviewItem delegate, even though
     31            we're returning nil.
     32
     33            * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm:
     34            (-[_WKPreviewControllerDelegate previewController:frameForPreviewItem:inSourceView:]):
     35            (-[_WKPreviewControllerDelegate previewController:transitionImageForPreviewItem:contentRect:]):
     36
    1372018-05-16  Babak Shafiei  <bshafiei@apple.com>
    238
  • branches/safari-606.1.17-branch/Source/WebKit/UIProcess/Cocoa/SystemPreviewControllerCocoa.mm

    r231803 r231856  
    138138        return CGRectZero;
    139139
     140    *view = presentingViewController.view;
    140141    CGRect frame = presentingViewController.view.frame;
    141142    // Create a smaller rectangle centered in the frame.
     
    146147}
    147148
     149- (UIImage *)previewController:(QLPreviewController *)controller transitionImageForPreviewItem:(id <QLPreviewItem>)item contentRect:(CGRect *)contentRect
     150{
     151    return nil;
     152}
     153
    148154@end
    149155
Note: See TracChangeset for help on using the changeset viewer.