commit | 4ac27ef92b7aa7d25ff4add8aa97925fd2cdef67 | [log] [tgz] |
---|---|---|
author | Luna Lu <loonybear@chromium.org> | Thu Aug 30 21:26:12 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 30 21:26:12 2018 |
tree | b406aa754fee88d60ee89620c33f39390b9751b6 | |
parent | 18f329d87355e85205c98b8f584a45bdcce89055 [diff] |
HTMLImageElement intrinsicSize attribute override intrinsic aspect ratio for responsive images The CL https://chromium.googlesource.com/chromium/src/+/bd4c33b5e81d495ecdac66b0375924d9565330cb did not handle responsive images correctly. This CL resets overridden_intrinsic_size_: When source is chosen using W descriptor, 'sizes' sets the new width of the overridden_intrinsic_size_, and the new height is calculated by the aspect ratio defined by the intrinsicSize attribute. Bug: 874629 Change-Id: I16b2f6c2fb9ae741144ba509c57f1e033c8cdc17 Reviewed-on: https://chromium-review.googlesource.com/1195801 Commit-Queue: Luna Lu <loonybear@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#587774}
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 .