Changeset 188352 in webkit


Ignore:
Timestamp:
Aug 12, 2015, 1:20:26 PM (10 years ago)
Author:
bshafiei@apple.com
Message:

Merged r188349. rdar://problem/22206433

Location:
branches/safari-601.1.46-branch/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1.46-branch/Source/WebKit2/ChangeLog

    r188296 r188352  
     12015-08-12  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Merge r188349.
     4
     5    2015-08-12  Enrica Casucci  <enrica@apple.com>
     6
     7            Element interaction should not be canceled when the menu is already being shown.
     8            https://bugs.webkit.org/show_bug.cgi?id=147945
     9            rdar://problem/22206433
     10
     11            Reviewed by Beth Dakin.
     12
     13            When preview is canceled by the action menu gesture, we should not stop interacting
     14            with the element, since the information about the element is used for the menu actions.
     15            We now expose a new method in the action sheet assistant to know if the action sheed is
     16            being shown and we use this as an indication that we should not stop the interaction
     17            with the element.
     18
     19            * UIProcess/ios/WKActionSheetAssistant.h:
     20            * UIProcess/ios/WKActionSheetAssistant.mm:
     21            (-[WKActionSheetAssistant isShowingSheet]): Added.
     22            * UIProcess/ios/WKContentViewInteraction.mm:
     23            (-[WKContentView _interactionStoppedFromPreviewItemController:]): Do not stop
     24            the interaction if the sheet is being shown.
     25
    1262015-08-11  Matthew Hanson  <matthew_hanson@apple.com>
    227
  • branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.h

    r186734 r188352  
    6868- (RetainPtr<NSArray>)defaultActionsForLinkSheet:(_WKActivatedElementInfo *)elementInfo;
    6969- (RetainPtr<NSArray>)defaultActionsForImageSheet:(_WKActivatedElementInfo *)elementInfo;
     70- (BOOL)isShowingSheet;
    7071@end
    7172
  • branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm

    r188296 r188352  
    205205}
    206206
     207- (BOOL)isShowingSheet
     208{
     209    return _interactionSheet != nil;
     210}
     211
    207212- (void)_createSheetWithElementActions:(NSArray *)actions showLinkTitle:(BOOL)showLinkTitle
    208213{
  • branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r188296 r188352  
    33823382    [self _addDefaultGestureRecognizers];
    33833383
    3384     _page->stopInteraction();
     3384    if (![_actionSheetAssistant isShowingSheet])
     3385        _page->stopInteraction();
    33853386}
    33863387
Note: See TracChangeset for help on using the changeset viewer.