Use NGPaintFragment::InlineFragmentsFor() in LayoutText::DetachAbstractInlineTextBoxesIfNeeded()
This patch changes |LayoutText::DetachAbstractInlineTextBoxesIfNeeded()| to use |NGPaintFragment::InlineFragmentsFor()| instead of |NGInlineCursor|, because |DetachAbstractInlineTextBoxesIfNeeded()| is called after containg block flow of |LayoutText| changed, e.g. removing, moving, spliting, etc. Note: This is experimatal patch because we don't know exact reproduce case. Note: |NGInlineCursor::MoveTo(LayoutObject)| requires root paint fragment computed from specified layout object. Bug: 1040938 Change-Id: I7624a19e66f449182309a29ab0fc4748839d69b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2006837 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#732769}
Showing
Please register or sign in to comment