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

Changeset 187198 in webkit


Ignore:
Timestamp:
Jul 22, 2015, 6:08:30 PM (11 years ago)
Author:
timothy_horton@apple.com
Message:

[iOS] Adjust the preview architecture
https://bugs.webkit.org/show_bug.cgi?id=147203
<rdar://problem/21945775>

Reviewed by Simon Fraser.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _dataForPreviewItemController:atPosition:type:]):
Link previews should win over image previews if both are possible.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r187196 r187198  
     12015-07-22  Tim Horton  <timothy_horton@apple.com>
     2
     3        [iOS] Adjust the preview architecture
     4        https://bugs.webkit.org/show_bug.cgi?id=147203
     5        <rdar://problem/21945775>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * UIProcess/ios/WKContentViewInteraction.mm:
     10        (-[WKContentView _dataForPreviewItemController:atPosition:type:]):
     11        Link previews should win over image previews if both are possible.
     12
    1132015-07-22  James Savage  <james.savage@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r187193 r187198  
    32643264        else
    32653265            dataForPreview[UIPreviewDataLink] = [NSURL _web_URLWithWTFString:_positionInformation.url];
    3266     }
    3267     if (canShowImagePreview) {
     3266    } else if (canShowImagePreview) {
    32683267        *type = UIPreviewItemTypeImage;
    32693268        dataForPreview[UIPreviewDataLink] = [NSURL _web_URLWithWTFString:_positionInformation.imageURL];
Note: See TracChangeset for help on using the changeset viewer.