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

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

Issue 2457613004: Utilize FrameSelection::setSelection() taking SelectionInDOMTree/SelectionInFlatTree (Closed)
Patch Set: 2016-10-28T15:45:56 Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/DOMSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
index 0a1501f0ffea6ca18800ee7703434d1d08b6bad4..69d3e5a55c463fbb83e19d4a78649e1d014e4bc9 100644
--- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
@@ -231,7 +231,7 @@ void DOMSelection::collapseToEnd(ExceptionState& exceptionState) {
SelectionInDOMTree::Builder builder;
builder.collapse(selection.end());
- frame()->selection().setSelection(createVisibleSelection(builder.build()));
+ frame()->selection().setSelection(builder.build());
}
void DOMSelection::collapseToStart(ExceptionState& exceptionState) {
@@ -255,7 +255,7 @@ void DOMSelection::collapseToStart(ExceptionState& exceptionState) {
SelectionInDOMTree::Builder builder;
builder.collapse(selection.start());
- frame()->selection().setSelection(createVisibleSelection(builder.build()));
+ frame()->selection().setSelection(builder.build());
}
void DOMSelection::empty() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698