Fix indenting when paragraphs wrapped with inline elements.
When the inline elements are wrapped around nested block elements or line breaks, |CompositeEditCommand::CloneParagraphUnderNewElement| clones the entire inline element without taking the block elements into consideration and then copies into <div> that is inside a <blockquote> element. This leads to duplication of content. Fix is to check for this scenario and properly split the elements so the contents are not copied incorrectly. Test: web_tests/editing/execCommand/indent/indent_blockquote_with_inline_nested_paragraphs.html Change-Id: I63bf0af34ea2fa8a89003d1a0090a3ad453bf1e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2536933Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Anupam Snigdha <snianu@microsoft.com> Cr-Commit-Position: refs/heads/master@{#827209}
Showing
Please register or sign in to comment