[LayoutNG] Remove children before NGPaintFragmnet is destructed
This patch changes NGPaintFragment to remove children before it is destructed. Because NGPaintFragment keeps its children as a linked list, the destructor will deref its first child and next sibling, which will call their destructors recursively. This patch removes children first to avoid stack overflow when there are many children. Bug: 901105 Change-Id: I0bbb5745468926178ce0132208d4c07f56839cf4 Reviewed-on: https://chromium-review.googlesource.com/c/1314020 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#605189}
Showing
Please register or sign in to comment