commit | 7edb45c4ad8cdf06dd825eff88f08f44ff0892e9 | [log] [tgz] |
---|---|---|
author | Muhammad Salmaan <musalmaan@chromium.org> | Wed Jun 11 21:12:22 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 11 21:12:22 2025 |
tree | 916128022a598dce59c26aa5fb1951d35aa776ec | |
parent | 2759a4fb1d58758d303dfaf9b28e217a1da8893b [diff] |
Fix intent chip padding for non-vector icons This change corrects the padding for the Intent Chip when it displays a non-vector icon. Previously, the chip used default page action icon padding, and now the `PageActionView::UpdateBorder()` method checks if the displayed image is a non-vector icon. If so, it applies the standard chip padding (LOCATION_BAR_CHILD_INTERIOR_PADDIND vertically and LOCATION_BAR_CHIP_PADDING horizontally). This ensures visual consistency with how chip-style buttons were previously padded. Unit tests have been updated to verify this new padding logic. Screenshot: https://screenshot.googleplex.com/8t6yzSszQfv3ZTT.png Bug: 413076423 Change-Id: I79d5907e0fc4dd1468c3553c6a100dbb5dfbf35a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6638170 Reviewed-by: Daniel Soromou <koretadaniel@chromium.org> Commit-Queue: Muhammad Salmaan <musalmaan@chromium.org> Reviewed-by: Kaan Alsan <alsan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1472676}
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.