Reland "Fix TransformNode::IsAffectedByOuterViewportBoundsDelta()"
This reverts commit c7cb1a8e. Use a more reliable way to check if a fixed-pos element's container is LayoutView. The previous method of checking parent transform was not reliable because the fixed-pos container may not create transform nodes. Original change's description: > Revert "Fix TransformNode::IsAffectedByOuterViewportBoundsDelta()" > > This reverts commit ea5c2a2c. > > Reason for revert: Checking the parent transform to check if a fix-pos > element is contained by LayoutView is not reliable. > > Original change's description: > > Fix TransformNode::IsAffectedByOuterViewportBoundsDelta() > > > > Don't set the flag in the following cases: > > 1. The fixed element is contained by an ancestor below the LayoutView; > > 2. The fixed element is not in the main frame. > > > > Bug: 978774 > > Change-Id: I430dc968c0d016ac9bee4f4934508703a3b90645 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1680938 > > Reviewed-by: David Bokan <bokan@chromium.org> > > Reviewed-by: Philip Rogers <pdr@chromium.org> > > Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> > > Cr-Commit-Position: refs/heads/master@{#673239} > > TBR=wangxianzhu@chromium.org,bokan@chromium.org,pdr@chromium.org > > Change-Id: I120ced5c25468a81e0d9ec227073597dce7bb2c8 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: 978774 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1680734 > Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> > Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> > Cr-Commit-Position: refs/heads/master@{#673370} Change-Id: I5fc8f9c354f616068899b967160425d481dc2c26 Bug: 978774 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1681931Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#673439}
Showing
Please register or sign in to comment