| 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 870c5e892b1d1dd6dc56600d3dd9d7f2ece59f8c..b3b12ac43eb61b64e270f190d3d1071fc1e5d516 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
|
| @@ -1953,6 +1953,9 @@ Position CompositeEditCommand::positionAvoidingSpecialElementBoundary(
|
|
|
| result = Position::inParentAfterNode(*enclosingAnchor);
|
| }
|
| +
|
| + document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| // If visually just before an anchor, insert *outside* the anchor unless
|
| // it's the first VisiblePosition in a paragraph, to match NSTextView.
|
| if (visiblePos.deepEquivalent() == firstInAnchor.deepEquivalent()) {
|
|
|