Bug 131775 - Images dragged from WebKit1 on 2x displays are too big
Summary: Images dragged from WebKit1 on 2x displays are too big
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
Keywords: InRadar
Depends on:
Reported: 2014-04-16 16:47 PDT by Tim Horton
Modified: 2014-04-16 17:00 PDT (History)
2 users (show)

See Also:

patch (1.50 KB, patch)
2014-04-16 16:52 PDT, Tim Horton
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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