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

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

Issue 2906493003: Get rid of FrameSelection::SetSelectedRange() (Closed)
Patch Set: Created 3 years, 7 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/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index decdf8298f69484fdba6bd5410c017621d4af8b5..51ae871948e4b1d8b1eb5dfa0cea9d1c98d784e7 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -724,22 +724,6 @@ void FrameSelection::SelectAll(EUserTriggered user_triggered) {
NotifyTextControlOfSelectionChange(kUserTriggered);
}
-bool FrameSelection::SetSelectedRange(const EphemeralRange& range,
- TextAffinity affinity,
- SelectionDirectionalMode directional,
- SetSelectionOptions options) {
- if (range.IsNull())
- return false;
- SetSelection(SelectionInDOMTree::Builder()
- .SetBaseAndExtent(range)
- .SetAffinity(affinity)
- .SetIsDirectional(directional ==
- SelectionDirectionalMode::kDirectional)
- .Build(),
- options);
- return true;
-}
-
void FrameSelection::NotifyAccessibilityForSelectionChange() {
if (GetSelectionInDOMTree().IsNone())
return;
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.h ('k') | third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698