Maintain aspect ratio when object-fit: cover used on a rotated image
When a bitmapped image is rotated (due to embedded EXIF orientation information) the ImagePainter::PaintIntoRect function incorrectly computed the source rectangle using the unrotated image. This CL corrects that shortcoming, ensuring that the image's aspect ratio is maintained. From a patch by Eric Lawrence now with tests. Bug: 1082669 Change-Id: I667883481132986cb5a33edd269ab10ac1d29ee7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2639804 Commit-Queue: Stephen Chenney <schenney@chromium.org> Reviewed-by:Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#845213}
Showing
Please register or sign in to comment