Introduce CompositeEditCommand::RemoveAllChildrenIfPossible()
This patch Introduces |CompositeEditCommand::RemoveAllChildrenIfPossible()| to avoid infinite root in |TypingCommand| and |DeleteSelectionCommand|. This patch is a continuation of the CL[1]. Note: no regression test as there's no minimized test case in the original report, and it's not worth the minimization because the bug is a rather edge case that requires an editable <style> element that specifies editable style on its parent using deprecated '-webkit-user-modify'. [1] http://crrev.com/c/1567098 [Editing] Abort TypingCommand when RemoveNode() fails to remove a node Bug: 949501 Change-Id: I9bd19da22f54cd7cbda735103c599a5082f8d94f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1573434 Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#652465}
Showing
Please register or sign in to comment