Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug tracking changes to layout shift roots.
Previously, we were setting was_layout_shift_root_ in the constructor for FragmentPaintPropertyTreeBuilder. This didn't work, because the constructor is run twice: in UpdateForSelf and UpdateForChildren, but was_layout_shift_root_ is only read in UpdateForChildren call. Unfortunately was_layout_shift_root_ is incorrectly computed when constructed in UpdateForChildren, because we need to compute it *before* setting Transform and other property tree nodes that can influence IsLayoutShiftRoot. Instead, remove it from the constructor, save it on the context, and only compute it at the beginning of UpdateForSelf. Fixed: 1170878 Change-Id: I2e04cc5f5b61f5e6f5c57099421b698d953cee13 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2660679 Commit-Queue: Chris Harrelson <[email protected]> Reviewed-by: Xianzhu Wang <[email protected]> Cr-Commit-Position: refs/heads/master@{#849159}
- Loading branch information