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

Unified Diff: Source/core/editing/VisibleSelection.h

Issue 1311853004: Rename visiblePositionOf() to createVisiblePosition() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-01T14:43:58 Created 5 years, 4 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 | « Source/core/editing/VisiblePositionTest.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index 0b4db45b9fbc0145beadc8535fd6aada9f8b2ca7..42558686694ba6455afe744e91d3944bdd3f75bf 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -82,11 +82,11 @@ public:
static SelectionType selectionType(const VisibleSelection& selection) { return selection.selectionTypeInComposedTree(); }
static VisiblePosition selectionVisibleStart(const VisibleSelection& selection)
{
- return visiblePositionOf(selectionStart(selection), isRange(selection) ? TextAffinity::Downstream : selection.affinity());
+ return createVisiblePosition(selectionStart(selection), isRange(selection) ? TextAffinity::Downstream : selection.affinity());
}
static VisiblePosition selectionVisibleEnd(const VisibleSelection& selection)
{
- return visiblePositionOf(selectionEnd(selection), isRange(selection) ? TextAffinity::Upstream : selection.affinity());
+ return createVisiblePosition(selectionEnd(selection), isRange(selection) ? TextAffinity::Upstream : selection.affinity());
}
static PositionType toPositionType(const Position& position) { return toPositionInComposedTree(position); }
};
« no previous file with comments | « Source/core/editing/VisiblePositionTest.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698