| Index: Source/WebCore/editing/visible_units.cpp
|
| ===================================================================
|
| --- Source/WebCore/editing/visible_units.cpp (revision 94993)
|
| +++ Source/WebCore/editing/visible_units.cpp (working copy)
|
| @@ -533,7 +533,7 @@
|
| while (n) {
|
| if (highestEditableRoot(firstPositionInOrBeforeNode(n)) != highestRoot)
|
| break;
|
| - Position pos = createLegacyEditingPosition(n, caretMinOffset(n));
|
| + Position pos = n->hasTagName(brTag) ? positionBeforeNode(n) : createLegacyEditingPosition(n, caretMaxOffset(n));
|
| if (pos.isCandidate()) {
|
| pos.getInlineBoxAndOffset(DOWNSTREAM, box, ignoredCaretOffset);
|
| if (box) {
|
|
|