Bug 136593

Summary: PDFDocumentImage can permanently cache wrong-resolution bitmaps
Product: WebKit Reporter: Tim Horton <thorton>
Component: PDFAssignee: Tim Horton <thorton>
Status: NEW    
Severity: Normal CC: mitz, sam, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
crazy WIP patch none

Tim Horton
Reported 2014-09-05 16:47:54 PDT
PDFDocumentImage has an optimization to use a cached bitmap if we're doing low-quality interpolation, which was intended to only occur during a live resize and when we were guaranteed to get a high-quality paint shortly afterwards. However, on iOS there are some scenarios where we *always* use low-quality interpolation, and there are also CSS properties that allow content to specify that it always wants low-quality interpolation. This results in caching the PDF at the initial scale it's rendered at, and never re-rendering. We should only do this optimization if we're actually in a live resize, and will eventually get a high-quality paint.
Attachments
crazy WIP patch (31.86 KB, patch)
2014-09-05 16:54 PDT, Tim Horton
no flags
Tim Horton
Comment 1 2014-09-05 16:54:59 PDT
Created attachment 237723 [details] crazy WIP patch
Radar WebKit Bug Importer
Comment 2 2014-09-05 17:06:35 PDT
Note You need to log in before you can comment on or make changes to this bug.