Bug 131775

Summary: Images dragged from WebKit1 on 2x displays are too big
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebKit Misc.Assignee: Tim Horton <thorton>
Severity: Normal CC: burg, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
patch simon.fraser: review+

Description Tim Horton 2014-04-16 16:47:54 PDT
WebCore hands us an NSImage with large logical size; WebKit2 scales down by the page's device scale factor; WebKit1 does not.

WebCore handing WebKit2 an image with the right logical size won't work, because WebKit2 has to put it in a ShareableBitmap and throw it across the process boundary.

So, instead, scale it down in WebKit1 just like we do in WebKit2.

Comment 1 Tim Horton 2014-04-16 16:52:04 PDT
Created attachment 229499 [details]
Comment 2 Tim Horton 2014-04-16 17:00:37 PDT