commit | 86ae1272b4a60b42439bc115777bb916fa3a6720 | [log] [tgz] |
---|---|---|
author | Noam Rosenthal <noam.j.rosenthal@gmail.com> | Thu Oct 15 19:04:00 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 15 19:04:00 2020 |
tree | c4b88964d0b8feee5098d754a5ebe0eacd56045a | |
parent | 44ba73e078adf32397cc5e5e5df37e4b350a220d [diff] |
Read image resolution from EXIF, apply to intrinsic size See https://github.com/whatwg/html/pull/5574 Currently applies to JPEG only. Use the EXIF resolution/size information we read from the JPEG image to determine a density-corrected preferred size, which overrides the intrinsic size of the image. We only apply this intrinsic size when an image has both resolution and size information in its exif. When asking an Image for display size, the preferred size is returned, and the source rect for reading from the image is scaled when applicable. Added many WPT reference tests. Bug: 1069755 Change-Id: I01a38c72bb46974a0c112175934cd3c2c48607a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2292219 Commit-Queue: Stephen Chenney <schenney@chromium.org> Reviewed-by: Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#817600}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.