Prepare LayoutShiftTracker for removal of FragmentData::VisualRect()
Add FragmentData::VisualRectIn2DTranslationRoot() for LayoutShiftTracker. It's currently based on FragmentData::VisualRect() and OffsetTo2DTranslationRoot(). When we remove VisualRect(), we'll remove FragmentData::visual_rect_ and offset_to_2d_translation_root_, and store visual_rect_in_2d_translation_root_ only. We don't need any more change to LayoutShiftTracker when we remove Fragment::VisualRect(). Bug: 1107724 Change-Id: I8f6f7bfe8677180a2062fb7f67f73ff7ca6ce1b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2311676Reviewed-by:Steve Kobes <skobes@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#791082}
Showing
Please register or sign in to comment