commit | cc453fd9995beb22738596955bb9fde75054db18 | [log] [tgz] |
---|---|---|
author | Xianzhu Wang <wangxianzhu@chromium.org> | Thu Apr 07 02:13:47 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 07 02:13:47 2022 |
tree | 4fe330f429f7d915b4e620beef4eff48e2e9a98a | |
parent | 5357c2e6f350cde0abde9d3f07f8af19ffa03675 [diff] |
Use layout coordinates for LayoutClipRect of ClipPathClip and MaskClip This is to ensure correct inclusive intersection for empty objects with empty clip-path/mask. Previously, we failed to detect viewport intersection and start loading a lazy loading <img> which was empty with an empty clip-path before the image was loaded. A change (crrev.com/936552) from blink::EnclosingIntRect(FloatRect) to gfx::ToEnclosingRect(gfx::RectF) exposed the issue. The difference between the two functions was that for an empty input rect with non-integral origin, the former returned an non-empty IntRect, while the latter returns an empty gfx::Rect. An alternative to this CL is to add a version of gfx::ToEnclosingRect() behaving the same as blink::EnclosingIntRect(), but I think this CL is better by making LayoutClipRect for ClipPathClip and MaskClip correct. Bug: 1308299, 1248598 Change-Id: I242c1d38277cdd91aa596fda15156d991f2626d7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3568746 Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/main@{#989750}
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.