Use outline-offset for default focus ring. Prior to this CL, the outline-offset was *ignored when drawing the default focus ring (see AdjustedFocusRingOffset): - for FormControlsRefresh, GetDefaultOffsetForFocusRing was used instead - on Windows the value was completely ignored - on Mac the value was used This CL updated the behavior so that the default focus ring respects the value of outline-offset. Because of this, GetDefaultOffsetForFocusRing is not needed anymore since now we can directly update the outline-offset to correctly reflect what we are painting. Another difference in behavior is that the offset is not going to be zoom independent anymore. This fix is just for FormControlsRefresh (the feature is enabled on all platforms except Android) to minimize regression risks. The fix is validated by: focus-ring-outline-offset.html Bug: 945181 Change-Id: I2cff82556571d9f541b95f8cece9b7c3be1191c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2138156 Commit-Queue: Ionel Popescu <iopopesc@microsoft.com> Reviewed-by: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#756951}
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 .
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.