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

Changeset 187255 in webkit


Ignore:
Timestamp:
Jul 23, 2015, 3:00:16 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Adopt the new _previewItemControllerDidCancelPreview delegate method.
https://bugs.webkit.org/show_bug.cgi?id=147238

Don't allow hightlight long press to trigger tap if the link preview is cancelled because
the link is not preview-able.

Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2015-07-23
Reviewed by Beth Dakin.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _previewItemControllerDidCancelPreview:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r187253 r187255  
     12015-07-23  Yongjun Zhang  <yongjun_zhang@apple.com>
     2
     3        Adopt the new _previewItemControllerDidCancelPreview delegate method.
     4        https://bugs.webkit.org/show_bug.cgi?id=147238
     5
     6        Don't allow hightlight long press to trigger tap if the link preview is cancelled because
     7        the link is not preview-able.
     8
     9        Reviewed by Beth Dakin.
     10
     11        * UIProcess/ios/WKContentViewInteraction.mm:
     12        (-[WKContentView _previewItemControllerDidCancelPreview:]):
     13
    1142015-07-23  Enrica Casucci  <enrica@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r187212 r187255  
    33993399}
    34003400
     3401- (void)_previewItemControllerDidCancelPreview:(UIPreviewItemController *)controller
     3402{
     3403    _highlightLongPressCanClick = NO;
     3404}
     3405
    34013406@end
    34023407
Note: See TracChangeset for help on using the changeset viewer.