Chromium Code Reviews
DescriptionMake ReplaceSelectionCommand to handle empty SPAN replacement
This patch makes |ReplaceSelectionCommand| to handle empty SPAN replacement.
Before this patch, it crashes at |SimplifyMarkupCommand::doApply()| with
null pointer reference passed by |ReplaceSelectionCommand| with
null |insertNodes.firstNodeInserted()|.
BUG=619131
TEST=run_webkit_unit_tests --gtest_filter=ReplaceSelectionCommandTest.pastingEmptySpan
Committed: https://crrev.com/cd80804c61b6d9578a633d3546043d03aecdf27b
Cr-Commit-Position: refs/heads/master@{#404075}
Patch Set 1 : 2016-07-06T14:51:16 #Patch Set 2 : 2016-07-07T10:52:58 #
Messages
Total messages: 11 (5 generated)
|
||||||||||||||||||||||||||||