commit | 0e3de80b1bb55ed72fe14d1f8f8872d877731b7f | [log] [tgz] |
---|---|---|
author | Matthias Körber <koerber@google.com> | Mon Nov 29 23:23:32 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 29 23:23:32 2021 |
tree | 6c122399960ae00f957c1e5d99e6033b386e0efe | |
parent | 7ca4d27e14fc47ff533df1ebbb6400cbd17ef787 [diff] |
[BubbleBorder] Condition arrow placement on sufficient space on bubble This CL fixes a crash in AddArrowToBubbleCornerAndPointTowardsAnchor. When called with a insufficiently sized bubble, a call to base::clamp results in a CHECK violation. With this CL, the placement of the arrow in conditioned on having sufficient space. If not, the function returns false. An alternative is to extend the size of the bubble, but sizing should be the responsibility of the caller and not of the border. Bug: 1273560 Change-Id: Icb329eff74f5d535808fdc4eb8c55ca28ebab3e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3302303 Commit-Queue: Matthias Körber <koerber@google.com> Reviewed-by: Dana Fried <dfried@chromium.org> Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org> Cr-Commit-Position: refs/heads/main@{#946202}
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.