[Webkit-unassigned] [Bug 146557] Allow the UIDelegate to customize an image preview
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 2 14:20:58 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=146557
Tim Horton <thorton at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #256030|review? |review+
Flags| |
--- Comment #2 from Tim Horton <thorton at apple.com> ---
Comment on attachment 256030
--> https://bugs.webkit.org/attachment.cgi?id=256030
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=256030&action=review
> Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:60
> +- (void)_webView:(WKWebView *)webView willPreviewImageWithURL:(NSURL *)imageURL;
> +- (void)_webView:(WKWebView *)webView commitPreviewedImageWithURL:(NSURL *)imageURL;
Please add WK_AVAILABLE macros.
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3216
> + id<WKUIDelegatePrivate> uiDelegate = static_cast<id <WKUIDelegatePrivate>>([_webView UIDelegate]);
space after id
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3237
> + if (absoluteImageURL.isEmpty() || !WebCore::protocolIsInHTTPFamily(absoluteImageURL))
At some point we should consider data: URL images.
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3241
> + NSURL *targetURL = [NSURL _web_URLWithWTFString:_positionInformation.imageURL];
No real need for the temporary, just like below.
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:3252
> + id<WKUIDelegatePrivate> uiDelegate = static_cast<id <WKUIDelegatePrivate>>([_webView UIDelegate]);
space after id
> Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:2162
> + info.imageURL = [(NSURL *)element->document().completeURL(downcast<HTMLImageElement>(*element).src()) absoluteString];
What happens if it's a srcset image?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150702/b375792b/attachment.html>
More information about the webkit-unassigned
mailing list