commit | 9bdb9a8de00b18c027ca8fd48c8c3b67ca0447b5 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Fri Feb 16 11:16:56 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 16 11:16:56 2024 |
tree | 98826f819b2509bd48613d4945ce132d4d0c343b | |
parent | c28a016e9d745af743fdf6129cf06dcef8238de2 [diff] |
Fix gfx::QuadF::IntersectsRect false positives A rectangle can be fully outside the quad without one of the quad's edges being a separating axis. We need to check for separating axes among the edges of the rectangle too to be sure. Add a new method Extents() to gfx::QuadF to get the axis-aligned extents (AABB) of the quad. Keep the old IntersectsRect() implementation, but rename it to IntersectsRectPartial(). It can be used (as an optimization) when the pre-conditions allow. Also fix FloatRoundedRect::IntersectsQuad to correctly consider similar cases. Fixed: 40813847 Bug: 40364016 Change-Id: I279ad49f25bae080f481c0f42bbb6af6ae6fde4b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5300420 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/main@{#1261565}
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.