LayoutTests:
Reviewed by harrison
* editing/execCommand/
4641880-1-expected.checksum: Added.
* editing/execCommand/
4641880-1-expected.png: Added.
* editing/execCommand/
4641880-1-expected.txt: Added.
* editing/execCommand/
4641880-1.html: Added.
* editing/execCommand/
4641880-2-expected.checksum: Added.
* editing/execCommand/
4641880-2-expected.png: Added.
* editing/execCommand/
4641880-2-expected.txt: Added.
* editing/execCommand/
4641880-2.html: Added.
WebCore:
Reviewed by harrison
<rdar://problem/
4641880>
Setting bullets to existing text grabs subsequent paragraph
When a selection ends at the start of a paragraph, we rarely paint
the selection gap before that paragraph, because there often is no gap.
In a case like this, it's not obvious to the user that the selection
ends "inside" that paragraph, so it would be confusing if
InsertUn{Ordered}List and Indent/Outdent operated on that paragraph.
* editing/FormatBlockCommand.cpp:
(WebCore::FormatBlockCommand::doApply): Moved the check for editability of
the selection to a more appropriate place. Change the endingSelection
if it ends at the start of a paragraph.
* editing/IndentOutdentCommand.cpp:
(WebCore::IndentOutdentCommand::doApply): Ditto.
* editing/InsertListCommand.cpp:
(WebCore::InsertListCommand::doApply): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17638
268f45cc-cd09-0410-ab3c-
d52691b4dbfc