Changeset 188352 in webkit
- Timestamp:
- Aug 12, 2015, 1:20:26 PM (10 years ago)
- 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 1 2015-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 1 26 2015-08-11 Matthew Hanson <matthew_hanson@apple.com> 2 27 -
branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.h
r186734 r188352 68 68 - (RetainPtr<NSArray>)defaultActionsForLinkSheet:(_WKActivatedElementInfo *)elementInfo; 69 69 - (RetainPtr<NSArray>)defaultActionsForImageSheet:(_WKActivatedElementInfo *)elementInfo; 70 - (BOOL)isShowingSheet; 70 71 @end 71 72 -
branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKActionSheetAssistant.mm
r188296 r188352 205 205 } 206 206 207 - (BOOL)isShowingSheet 208 { 209 return _interactionSheet != nil; 210 } 211 207 212 - (void)_createSheetWithElementActions:(NSArray *)actions showLinkTitle:(BOOL)showLinkTitle 208 213 { -
branches/safari-601.1.46-branch/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm
r188296 r188352 3382 3382 [self _addDefaultGestureRecognizers]; 3383 3383 3384 _page->stopInteraction(); 3384 if (![_actionSheetAssistant isShowingSheet]) 3385 _page->stopInteraction(); 3385 3386 } 3386 3387
Note:
See TracChangeset
for help on using the changeset viewer.