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

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

Issue 2920733002: Rename VisibleSelection::end() to End() (Closed)
Patch Set: 2017-06-01T18:31:38 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/DOMSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
index 0dd8a65a4c64e7f55f9a88535db9b76dcd033656..180773fbaf07befeb71181ece08585e2622f03d5 100644
--- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
@@ -107,13 +107,13 @@ bool DOMSelection::IsBaseFirstInSelection() const {
// removed.
static Position AnchorPosition(const VisibleSelection& selection) {
Position anchor =
- selection.IsBaseFirst() ? selection.Start() : selection.end();
+ selection.IsBaseFirst() ? selection.Start() : selection.End();
return anchor.ParentAnchoredEquivalent();
}
static Position FocusPosition(const VisibleSelection& selection) {
Position focus =
- selection.IsBaseFirst() ? selection.end() : selection.Start();
+ selection.IsBaseFirst() ? selection.End() : selection.Start();
return focus.ParentAnchoredEquivalent();
}

Powered by Google App Engine
This is Rietveld 408576698