| Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| index 09c3a54af7f882473c557d24bf4aa287382e1d8d..9b2cb8fa2022001246d8b073dbe254e43d5e46ce 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -1541,7 +1541,7 @@ Position CompositeEditCommand::positionAvoidingSpecialElementBoundary(const Posi
|
| // Don't avoid block level anchors, because that would insert content into the wrong paragraph.
|
| if (enclosingAnchor && !isEnclosingBlock(enclosingAnchor)) {
|
| VisiblePosition firstInAnchor = VisiblePosition::firstPositionInNode(enclosingAnchor);
|
| - VisiblePosition lastInAnchor = createVisiblePosition(lastPositionInNode(enclosingAnchor));
|
| + VisiblePosition lastInAnchor = createVisiblePosition(Position::lastPositionInNode(enclosingAnchor));
|
| // If visually just after the anchor, insert *inside* the anchor unless it's the last
|
| // VisiblePosition in the document, to match NSTextView.
|
| if (visiblePos.deepEquivalent() == lastInAnchor.deepEquivalent()) {
|
|
|