Bug 136593 - PDFDocumentImage can permanently cache wrong-resolution bitmaps
Summary: PDFDocumentImage can permanently cache wrong-resolution bitmaps
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: PDF (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-09-05 16:47 PDT by Tim Horton
Modified: 2014-09-05 17:06 PDT (History)
4 users (show)

See Also:


Attachments
crazy WIP patch (31.86 KB, patch)
2014-09-05 16:54 PDT, Tim Horton
no flags 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-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.
Comment 1 Tim Horton 2014-09-05 16:54:59 PDT
Created attachment 237723 [details]
crazy WIP patch
Comment 2 Radar WebKit Bug Importer 2014-09-05 17:06:35 PDT
<rdar://problem/18252268>