Bug 126710 - Images can be painted with tiny aspect ratio differences
Summary: Images can be painted with tiny aspect ratio differences
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-01-09 12:14 PST by Tim Horton
Modified: 2015-06-24 12:26 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2014-01-09 12:14:40 PST
At paint time, the aspect ratio of the source and destination rects can be slightly different when the image is scaled down (when one but not both of width or height attributes are set). This happens because the image size is scaled and then rounded to int for the destination rect.

This means that images are getting squished a *tiny* amount when scaled down, and also caused http://trac.webkit.org/changeset/161568.
Comment 1 Radar WebKit Bug Importer 2015-06-24 12:26:17 PDT
<rdar://problem/21529604>