Bug 111820

Summary: WebPage::scaledSnapshotWithOptions returns a corrupt snapshot if you request a rect larger than the FrameView’s size
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebKit2Assignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: sam, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
patch simon.fraser: review+

Description Tim Horton 2013-03-07 21:46:14 PST
We have to clear the image if there’s area that won’t be painted by the FrameView.

<rdar://problem/13375785>
Comment 1 Tim Horton 2013-03-07 21:49:46 PST
Created attachment 192143 [details]
patch
Comment 2 Tim Horton 2013-03-07 21:51:38 PST
Wait, the coordinates are mixed up.
Comment 3 Tim Horton 2013-03-07 21:56:00 PST
Maybe we should just unconditionally clear the image — FrameView has the ability to have a non-opaque background, which would still be broken with the “if there’s area that won’t be painted by the FrameView” approach.
Comment 4 Simon Fraser (smfr) 2013-03-07 21:59:57 PST
I think always clearing the image is fine.
Comment 5 Tim Horton 2013-03-07 22:00:59 PST
Created attachment 192145 [details]
patch
Comment 6 Tim Horton 2013-03-10 23:32:26 PDT
http://trac.webkit.org/changeset/145341