Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[anchor-position] Change |NGLogicalAnchorQuery::Set| to check the list
|NGLogicalAnchorQuery| is a linked list to keep multiple anchors of the same name since r1039118 crrev.com/c/3851201, because validities change as it is propagated, and queries resolve to the first valid anchor in the tree order. This patch changes |NGLogicalAnchorQuery::Set| to find the |LayoutObject| by traversing the linked list, instead of checking only the head one. The test hits a DCHECK without this fix. This was discussed in a CL review discussion[1]. [1] https://chromium-review.googlesource.com/c/chromium/src/+/3851201/comment/0d5895d2_6792b110/ Bug: 1309178 Change-Id: I4e0746c1cc6b64d3fb10683d5aa5f819e2f590e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3854585 Commit-Queue: Kent Tamura <tkent@chromium.org> Auto-Submit: Koji Ishii <kojii@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#1055563}
- Loading branch information