Link Previews that use WKImagePreviewViewController are not always scaled correctly
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2019 19:17:05 +0000 (19:17 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2019 19:17:05 +0000 (19:17 +0000)
commitbe9b0172af813db6dd03773a90103b736f5a4da6
treeca2cfb16ed507e04f635bb3ee40583b47f90b2fc
parentc750a89cea360be741a14bae5baf8955c72138c0
Link Previews that use WKImagePreviewViewController are not always scaled correctly
https://bugs.webkit.org/show_bug.cgi?id=197450
<rdar://problem/50357695>

Reviewed by Wenson Hsieh.

Tell the UIImageView that we create in WKImagePreviewViewController to use
a filling scaling method.

* UIProcess/WKImagePreviewViewController.mm:
(-[WKImagePreviewViewController initWithCGImage:defaultActions:elementInfo:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/WKImagePreviewViewController.mm