[LayoutNG] Call AssociatedNode() instead of GetOwner() on possibly pseudo NGOffsetMappingUnits
Since we have now supported CSS-generated contents in |NGOffsetMapping|, we should make sure an |NGOffsetMappingUnit| is not CSS-generated before calling |GetOwner()|, otherwise we should use |AssociatedNode()| instead. This patch converts too calls of |GetOwner()| into |AssociatedNode()| so that we don't hit the DCHECK in |GetOwner()|. Bug: 967106 Change-Id: I62c362d93ba0608d0e6bcdd74c0d27fe0ffa7554 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1632900 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#663983}
Showing
Please register or sign in to comment