commit | 901b935e43dd5809e7258ff7c2b9240c43306115 | [log] [tgz] |
---|---|---|
author | Xianzhu Wang <wangxianzhu@chromium.org> | Wed Oct 05 22:34:54 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 05 22:34:54 2022 |
tree | 58139686c4415d75b0ec2f2dd30dda3abb843bf7 | |
parent | 9dac27aa95f482d325abbf32cdd106de8bc4ff24 [diff] |
Add gfx::Transform::[Inverse]MapRect(const gfx::Rect&) This follows blink::TransformationMatrix(const gfx::Rect&), to prepare for combination of gfx::Transform and blink::TransformationMatrix. Code like the following gfx::RectF rect_f(rect); transform.TransformRect(&rect_f); gfx::Rect out_rect = gfx::ToEnclosingRect(rect_f); is replaced with gfx::Rect out_rect = gfx::MapRect(rect); Code in some unittests using gfx::ToRoundedRect(), gfx::ToEnclosedRect() or gfx::ToNearestRect() instead of gfx::ToEnclosingRect() as the last step are also replace with the new code as long as the tests still pass. Similar code in production code is kept as-is. Bug: 1359528 Change-Id: Ic86333d48da459fc571240d80d513ca5efded699 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3935017 Owners-Override: danakj <danakj@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1055517}
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.