Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 2647283006: Removing HandleVisible enum from FrameSelection (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index ac351aca0cb37c86321900bf054c88568fafe9b5..490990d60a2de76adea9ec07537eb00293d2f21e 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -1371,7 +1371,8 @@ void Editor::changeSelectionAfterCommand(
// Ranges for selections that are no longer valid
bool selectionDidNotChangeDOMPosition =
newSelection == frame().selection().selection();
- frame().selection().setSelection(newSelection, options);
+ frame().selection().setSelection(newSelection, HandleVisibility::NotVisible,
+ options);
// Some editing operations change the selection visually without affecting its
// position within the DOM. For example when you press return in the following

Powered by Google App Engine
This is Rietveld 408576698