[NGFragmentItem] Detach NGAbstractInlineTextBox when inserting/removing child layout object
This patch makes accessibility/aom-relation-list-properties.html to pass test instead of hitting |DCHECK()| about |LayoutText| has |NGAbstractInlineTextBox|. Before this patch, detaching |NGAbstractInlineTextBox| from |NGFragmentItem| associated to |LayoutText| is happened at |LayoutObjectChildList:: InsertChildNode()| after changing parent of |LayoutText| to new parent. This prevents us to use next for same layout object list because start of list is hold by previous containg block flow of |LayoutText| and new parent doesn't have it. After this patch, we call |InvalidateInlineItems()| to detach |NGAbstractInlineTextBox| in |LayoutObjectChildList::{Insert,Remove}ChildNode()| before changing parent to use next for same layout object list. Bug: 982194 Change-Id: If36223d434cfda16f8270e2e7759249e4bcdc015 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024389 Commit-Queue: Kent Tamura <tkent@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#735786}
Showing
Please register or sign in to comment