Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't hold dead layout objects in the anchor query machinery.
It's possible to enter the anchor machinery while layout is dirty (from LocalFrame::UpdateScrollSnapshots()). That's bad in itself (see crbug.com/384523570 ), but it's equally bad to keep destroyed layout objects around. Therefore, store Element* instead of LayoutObject*. Bug: 381362589 Change-Id: Ifdc3b5b8c7d30977136fd9a2572ffc3354ab472d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6097987 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/main@{#1397911}
- Loading branch information