12011-06-07 Annie Sullivan <sullivan@chromium.org>
2
3 Reviewed by NOBODY (OOPS!).
4
5 REGRESSION: Hitting enter in the middle of this span causes the cursor to go to the end of the span
6 https://bugs.webkit.org/show_bug.cgi?id=61594
7
8 Changed splitTreeToNode to a method splitTree() which takes a Position, and updated callers.
9
10 Tests: editing/inserting/return-key-before-br-in-span.html
11 editing/inserting/return-key-middle-of-span.html
12
13 * editing/CompositeEditCommand.cpp:
14 (WebCore::CompositeEditCommand::splitTree):
15 * editing/CompositeEditCommand.h:
16 * editing/FormatBlockCommand.cpp:
17 (WebCore::FormatBlockCommand::formatRange):
18 * editing/IndentOutdentCommand.cpp:
19 (WebCore::IndentOutdentCommand::indentIntoBlockquote):
20 (WebCore::IndentOutdentCommand::outdentParagraph):
21 * editing/InsertListCommand.cpp:
22 (WebCore::InsertListCommand::unlistifyParagraph):
23 * editing/InsertParagraphSeparatorCommand.cpp:
24 (WebCore::InsertParagraphSeparatorCommand::doApply):
25 * editing/ReplaceSelectionCommand.cpp:
26 (WebCore::ReplaceSelectionCommand::doApply):
27 (WebCore::ReplaceSelectionCommand::insertAsListItems):
28 * editing/htmlediting.cpp:
29