commit | 0b575c64a4a403efb4cf33242efff3a7ad81ab9c | [log] [tgz] |
---|---|---|
author | David Yeung <dayeung@chromium.org> | Thu Feb 13 17:34:47 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 13 17:34:47 2025 |
tree | 0a02f05fef35c6d3300eeb009c2c9ed15dd633a8 | |
parent | f1f713193e0ab5bcc091f96503f1f9b07af340d9 [diff] |
Fix bitwise comparison in LinkFragment RecalculateFont will always trigger a new font style even if its already underlined. This is because the bit wise operator comparison is incorrect. `font_list().GetFontStyle() & gfx::Font::UNDERLINE == 4` if underlined and will always not equal 1 (true). This also triggers a SetBounds call to the link which can causes a crash in StyledLabel because StyledLabel::Layout removes child views. While the underlying issue still persists, this fix will remove the trigger so focus should not trigger layout unless the link is not underlined. Bug: 375515698 Change-Id: Idb0ce2e86c50fd617fabac3bb6b25e368b95693e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6259617 Reviewed-by: Peter Kasting <pkasting@chromium.org> Commit-Queue: David Yeung <dayeung@chromium.org> Cr-Commit-Position: refs/heads/main@{#1419952}
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.