commit | d981bed05afbfa29d3b39607f2ce89c6046aafa9 | [log] [tgz] |
---|---|---|
author | Ethan Jimenez <ethavar@microsoft.com> | Fri Jan 10 04:52:32 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 10 04:52:32 2025 |
tree | 28236b1bcc971024bbf7536780d2a3bb3ec909c3 | |
parent | 245a267980bb0938e995c25703553f580e362412 [diff] |
Avoid precision loss between double and float in SetZoomInternal Previously, calculations for `layout_zoom_factor` were done with double types, when this value was passed down to a frame's descendants, it was implicitly casted to a float, producing some unexpected precision loss. This change makes the zoom factor calculation entirely with floats, avoiding floating point values that can't be represented. Change-Id: I5c0087ffcbf6967653f913df1b253ecdbdc0cc94 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6102589 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1404586}
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.