-
tony@chromium.org authored
Reviewed by Ojan Vafai. crash in WebCore::CompositeEditCommand::splitTreeToNode when indenting pre https://bugs.webkit.org/show_bug.cgi?id=38231 * editing/execCommand/indent-pre-expected.txt: Added. * editing/execCommand/indent-pre.html: Added. 2010-07-09 Tony Chang <tony@chromium.org> Reviewed by Ojan Vafai. crash in WebCore::CompositeEditCommand::splitTreeToNode when indenting pre https://bugs.webkit.org/show_bug.cgi?id=38231 Test: editing/execCommand/indent-pre.html * editing/IndentOutdentCommand.cpp: (WebCore::countParagraphs): (WebCore::IndentOutdentCommand::indentRegion): Split text nodes into one node per paragraph so moveParagraph doesn't get confused. (WebCore::IndentOutdentCommand::splitTextNodes): * editing/IndentOutdentCommand.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7c6786c3