| commit | 820bcc9f05e640ac727a68ba167291c3d1c392d2 | [log] [tgz] |
|---|---|---|
| author | Xiaocheng Hu <xiaochengh@chromium.org> | Thu Aug 04 22:36:13 2022 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 04 22:36:13 2022 |
| tree | 0774dfa5a7e94222baf0b3b480442d98ddbfddea | |
| parent | 5d25b65ae61166e46f75e67df04a9200698881d6 [diff] |
[anchor-position] Apply anchor-scroll offset in LayoutBox::OffsetFromContainerInternal() This patch modifies the function to apply anchor-scroll offset, so that we can get the correct location of the element in MapAncestorToLocal() and MapLocalToAncestor() transformations. This affects, e.g., getBoundingClientRect(), DevTools highlight rect and etc. The offset calculation reuses some existing code, which is now refactored into LayoutBox::ComputeAnchorScrollData(). Bug: 1309178 Change-Id: I8bd531d40772bd7089d7763f40e30e67932011f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3792270 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1031632}
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.