[CLS] Fix bug when recording paint offset translation deltas
Previously, a negative delta was added to additional_offset_to_layout_shift_root_delta to account for a paint offset translation transform on an object from the prior frame, which is meant to be added to the new paint offset translation and result in a delta. However, this negative delta was added to the containing block context, which is incorrect in cases when the current object is not a containing block for some descendants, such as nested fixed-position elements (there are other cases as well). Instead, store off the negative delta and apply it to the fragment context once it has been updated for the current object. Bug: 1141739 Change-Id: Ic667aff457be0a192de7f92a424996bcded47b10 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586969Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#836416}
Showing
Please register or sign in to comment