Chromium Code Reviews
Description[Editing][BugFix] Fix if condition in ReplaceSelectionCommand
In ReplaceSelectionCommand::doApply, we run exec BreakBlockquoteCommand to break a Mail
block quote and assume BR element is inserted at endingSelection.start. Then we remove the BR
element. This command is run if selection is start in a mail blockquote element.
However, selection start can be modified before L1006 because of deleting selection
to prepare for insertion.
This CL checks the condition again.
Plus, refactoring code flow.
BUG=534617
Committed: https://crrev.com/41f2fa33e2126633ba36e61eed9abb365990bd49
Cr-Commit-Position: refs/heads/master@{#355497}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Update #
Total comments: 1
Patch Set 3 : aaa #Patch Set 4 : update #
Total comments: 3
Patch Set 5 : update #
Messages
Total messages: 13 (4 generated)
|
||||||||||||||||||||||||||||