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

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

Issue 2724333002: Get rid of VisibleSelection::firstRangeOf() (Closed)
Patch Set: 2017-03-03T13:18:27 DCHECK(!range) => DCHECK(range) Created 3 years, 10 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/SelectionEditor.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
index cbf5174bbe79a2e473cd2bfea18c64318f559894..a06bc771a81ae07c735ce3bf5af79e7c00e81880 100644
--- a/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionEditor.cpp
@@ -368,7 +368,7 @@ void SelectionEditor::setLogicalRange(Range* range) {
Range* SelectionEditor::firstRange() const {
if (m_logicalRange)
return m_logicalRange->cloneRange();
- return firstRangeOf(computeVisibleSelectionInDOMTree());
+ return createRange(firstEphemeralRangeOf(computeVisibleSelectionInDOMTree()));
}
bool SelectionEditor::shouldAlwaysUseDirectionalSelection() const {

Powered by Google App Engine
This is Rietveld 408576698