Bug 159981

Summary: REGRESSION (r202927): The internal size of the ImageBuffer is scaled twice by the context scaleFactor
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, simon.fraser, thorton
Priority: P2 Keywords: InRadar, Regression
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case and its expected rendering
none
Screenshot for the test case and the expected rendering
none
Patch mmaxfield: review+

Said Abou-Hallawa
Reported 2016-07-20 11:42:26 PDT
This causes the scaled PDF image to be blurred and have lower resolution than what normal PDF can render for low scale graphics context.
Attachments
Test case and its expected rendering (14.11 KB, application/zip)
2016-07-20 11:45 PDT, Said Abou-Hallawa
no flags
Screenshot for the test case and the expected rendering (52.71 KB, image/png)
2016-07-20 11:47 PDT, Said Abou-Hallawa
no flags
Patch (46.94 KB, patch)
2016-07-21 16:59 PDT, Dean Jackson
mmaxfield: review+
Said Abou-Hallawa
Comment 1 2016-07-20 11:45:13 PDT
Created attachment 284133 [details] Test case and its expected rendering The expected page renders the PDF as expected with this regression.
Said Abou-Hallawa
Comment 2 2016-07-20 11:47:48 PDT
Created attachment 284135 [details] Screenshot for the test case and the expected rendering
Said Abou-Hallawa
Comment 3 2016-07-20 11:49:04 PDT
Dean Jackson
Comment 4 2016-07-21 16:59:01 PDT
Myles C. Maxfield
Comment 5 2016-07-21 17:18:41 PDT
Comment on attachment 284284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=284284&action=review > Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp:102 > + std::unique_ptr<ImageBuffer> buffer(new ImageBuffer(scaledSize, 1, colorSpace.get(), renderingMode, success)); make_unique
Dean Jackson
Comment 6 2016-07-21 17:50:46 PDT
Note You need to log in before you can comment on or make changes to this bug.