commit | 878d6b63935a792c8601ec401121dec4730ee4a2 | [log] [tgz] |
---|---|---|
author | Daniel Libby <dlibby@microsoft.com> | Wed Oct 06 21:42:48 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 06 21:42:48 2021 |
tree | 8830f899f90992ed98a47b859d026fdd6993aad3 | |
parent | 7e1ef24e9fc31762fdf26305616eaa96ca0ab6e4 [diff] |
Re-enable fractional line-height Turn on fractional line-height for layout measuring and also fix and issue where we were flooring via returning an int. This other codepath is used by getComputedStyle but also for measuring things like the empty line for textarea, whereas the placeholder text would get the correct fractional value. This mismatch was causing extra scrollbars to appear. The caret-height.html test change was also made as the previous test was incidentally (font-size: 10 is not valid, resulting in the default font-size of 13.333px) hitting a case where the y position of the caret was starting on a subpixel boundary when line-height was set, and pixel snapping caused a difference in heights for the caret. Change-Id: I6a0a295b25dcd75cf29aa89d7a885d8cbaf394b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3199976 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Daniel Libby <dlibby@microsoft.com> Cr-Commit-Position: refs/heads/main@{#928885}
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.