Make NGInlineNode::GetOffsetMapping() to work with legacy layout tree
This function makes |NGInlineNode::GetOffsetMapping()| to work with legacy layout tree by changing |CollectInlinesInnternal()| not to call |LayoutInline:: UpdateShouldCreateBoxFragment()| when it is called for offset mapping since we don't need to call |UpdateShouldCreateBoxFragment()| for offset mapping and it set |IsInInlineFormattingContext()| bit flag in |LayoutObject| then causing DCHECK(). This patch is a preparation of the patch[1]. [1] http://crrev.com/c/1337224 Utilize NGInlineNode::GetOffsetMapping() in Element#innerText Change-Id: I0d7d844faa2581c24cd786f15ec066141c445e1b Reviewed-on: https://chromium-review.googlesource.com/c/1341780Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#609263}
Showing
Please register or sign in to comment