| Index: third_party/WebKit/WebCore/editing/EditorCommand.cpp
|
| ===================================================================
|
| --- third_party/WebKit/WebCore/editing/EditorCommand.cpp (revision 9391)
|
| +++ third_party/WebKit/WebCore/editing/EditorCommand.cpp (working copy)
|
| @@ -186,13 +186,13 @@
|
| {
|
| Selection selection = frame->selection()->selection();
|
| selection.expandUsingGranularity(granularity);
|
| - RefPtr<Range> newRange = selection.toRange();
|
| + RefPtr<Range> newRange = selection.toNormalizedRange();
|
| if (!newRange)
|
| return false;
|
| ExceptionCode ec = 0;
|
| if (newRange->collapsed(ec))
|
| return false;
|
| - RefPtr<Range> oldRange = frame->selection()->selection().toRange();
|
| + RefPtr<Range> oldRange = frame->selection()->selection().toNormalizedRange();
|
| EAffinity affinity = frame->selection()->affinity();
|
| if (!frame->editor()->client()->shouldChangeSelectedRange(oldRange.get(), newRange.get(), affinity, false))
|
| return false;
|
| @@ -342,7 +342,7 @@
|
|
|
| static bool executeDeleteToMark(Frame* frame, Event*, EditorCommandSource, const String&)
|
| {
|
| - RefPtr<Range> mark = frame->mark().toRange();
|
| + RefPtr<Range> mark = frame->mark().toNormalizedRange();
|
| if (mark) {
|
| SelectionController* selection = frame->selection();
|
| bool selected = selection->setSelectedRange(unionDOMRanges(mark.get(), frame->editor()->selectedRange().get()).get(), DOWNSTREAM, true);
|
| @@ -888,7 +888,7 @@
|
|
|
| static bool executeSelectToMark(Frame* frame, Event*, EditorCommandSource, const String&)
|
| {
|
| - RefPtr<Range> mark = frame->mark().toRange();
|
| + RefPtr<Range> mark = frame->mark().toNormalizedRange();
|
| RefPtr<Range> selection = frame->editor()->selectedRange();
|
| if (!mark || !selection) {
|
| systemBeep();
|
|
|