Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[anchor-position] Fix scrolling with auto fallbacks
Existing code uses `OffsetInfo::fallback_index` to check if we are currently using a position fallback style, in which case scrolling can trigger a fallback position invalidation. However, the condition is wrong if the fallback is an auto fallback. This patch fixes it by adding a `uses_fallback_style` flag to indicate if the style is a fallback style. The new flag will also be used by other patches. Note: even though `anchor(auto)` will be removed soon, the code added by this patch will still be relevant, because we'll have other forms of auto fallbacks. Fixed: 1476972 Change-Id: Ia6be58070a47033158594d5e8e9d9fbf4cf1e794 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4842787 Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1193275}
- Loading branch information