| 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 ebc743c2dae72cab1398a3cc006558c126536026..87df2d6b8ecff7f15ddb50b2a9edadc3b01bd574 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -1801,7 +1801,7 @@ Position CompositeEditCommand::PositionAvoidingSpecialElementBoundary(
|
| VisiblePosition first_in_anchor =
|
| VisiblePosition::FirstPositionInNode(*enclosing_anchor);
|
| VisiblePosition last_in_anchor =
|
| - VisiblePosition::LastPositionInNode(enclosing_anchor);
|
| + VisiblePosition::LastPositionInNode(*enclosing_anchor);
|
| // If visually just after the anchor, insert *inside* the anchor unless it's
|
| // the last VisiblePosition in the document, to match NSTextView.
|
| if (visible_pos.DeepEquivalent() == last_in_anchor.DeepEquivalent()) {
|
|
|