commit | 05712779b95a4ccbfcbb469fbd7b70081ff2b1d9 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Wed Jan 22 11:34:06 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 22 11:34:06 2025 |
tree | 19babfce756faa9e0590087d1407caa1e97f60df | |
parent | 6c4cf86f1d705140e5c15fa38e8219e7e52aa259 [diff] |
Store a PhysicalNaturalSizingInfo in LayoutImage Switch the current `natural_size_` PhysicalSize to include also the natural aspect ratio. Due to the dependency from LayoutVideo, it is also updated to store its own natural dimensions rather than caching the poster image dimensions. Use the natural dimensions in LayoutImage to handle the call to IncrementVisuallyNonEmptyPixelCount() directly rather than calling LayoutImageResource::ImageSize(). This eliminates the last caller of LayoutImageResource::ImageSize(), so remove it. Bug: 41357911, 40866163 Change-Id: I2740d099a4712f4ec8d3eefa614a1dd60fd993b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6181889 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/main@{#1409572}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
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.
If you found a bug, please file it at https://crbug.com/new.