DescriptionDon't call splitTreeToNode() with null Node
This patch changes |IndentOutdentCommand::outdentParagraph()| to check whether
|enclosingBlockNode| is null or not, before passing it to
|CompositeEditCommand::splitTreeToNode()| which assumes it isn't null.
This situation can be happened in attach test case, where
|enclosingBlockNode| is calculated from |visibleStartOfParagraph|, which is
second TABLE element, by |enclosingBlock()|.
BUG=378758
TEST=editing/execCommand/outdent-collapse-table-crash.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175251
Patch Set 1 : 2014-05-30T05:17:51 #
Messages
Total messages: 7 (0 generated)
|