[LayoutNG] Only CSS boxes should return non-nullptr for GetLayoutObject().
Using the LayoutObject associated with other (non-CSS box) fragments (such as lines and columns) is generally wrong. We already had guards for lines, but not for columns. Had to add a couple of new methods to the NGPhysicalFragment API. Also inlined some of the NGPhysicalFragment methods that I changed. One change: There used to be a direct call to LayoutObject::IsAnonymous(). I replaced this with NGPhysicalFragment::IsAnonymousBlock(), which calls LayoutObject::IsAnonymousBlock() instead of IsAnonymous(). I assume this is more correct (given the comment where it's used), if it matters at all. Change-Id: I2fe133fc85c5888adbc303d0d392e65ae548908d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1913410 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#718089}
Showing
Please register or sign in to comment