Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index 4d749b552289e2f8e7fc28bc5c34d08c45f18dbf..30aa3b82da010503d579198d3a117da1c1a4c390 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -262,7 +262,8 @@ void FrameSelection::setNonDirectionalSelectionIfNeededAlgorithm(const VisibleSe |
if (visibleSelection<Strategy>() == newSelection) |
return; |
- setSelection(newSelection, granularity); |
+ const SetSelectionOptions options = CloseTyping | ClearTypingStyle; |
+ setSelection(newSelection, options, CursorAlignOnScroll::IfNeeded, granularity); |
} |
void FrameSelection::setNonDirectionalSelectionIfNeeded(const VisibleSelection& passedNewSelection, TextGranularity granularity, EndPointsAdjustmentMode endpointsAdjustmentMode) |