Make NGInlineCursor::GetLayoutBlockFlow() to work with line scoped cursor
This patch changes |NGInlineCursor::GetLayoutBlockFlow()| to work with line scoped cursor for preparation of the patch[1]. Before this patch, |NGPaintFragment| version of |GetLayoutBlockFlow()| crashes when root paint fragment is line box, because we can't use |NGPhysicalFragment:: GetLayoutObject()| returns null for |NGPhysicalLineBoxFragment|. [1] http://crrev.com/c/1888242 Utilize NGInlineCursor for inline box traversal Bug: 982194 Change-Id: I427627de885469712f3d526fccf297d4e94d6fe7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1896478 Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#711999}
Showing
Please register or sign in to comment