diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/editing/SelectionController.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/editing/SelectionController.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/editing/SelectionController.cpp b/chromium/third_party/WebKit/Source/core/editing/SelectionController.cpp index d57fcba1d6d..3032a4f60e0 100644 --- a/chromium/third_party/WebKit/Source/core/editing/SelectionController.cpp +++ b/chromium/third_party/WebKit/Source/core/editing/SelectionController.cpp @@ -848,6 +848,9 @@ void SelectionController::SetNonDirectionalSelectionIfNeeded( original_base_in_flat_tree_ = PositionInFlatTreeWithAffinity(); } + builder.SetIsDirectional( + frame_->GetEditor().Behavior().ShouldConsiderSelectionAsDirectional() || + new_selection.IsDirectional()); const SelectionInFlatTree& selection_in_flat_tree = builder.Build(); const bool should_show_handle = handle_visibility == HandleVisibility::kVisible; |