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

Unified Diff: Source/core/editing/PositionWithAffinity.cpp

Issue 1299873002: ALL-IN-ONE Introduce enum class TextAffinity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T18:08:52 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/PositionWithAffinity.h ('k') | Source/core/editing/RenderedPosition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/PositionWithAffinity.cpp
diff --git a/Source/core/editing/PositionWithAffinity.cpp b/Source/core/editing/PositionWithAffinity.cpp
index f1fdb87bcb0e0bce23091354a19df98cf0ede2c0..b4fba374994fd25cacab58a7f9e8ab778eecb76d 100644
--- a/Source/core/editing/PositionWithAffinity.cpp
+++ b/Source/core/editing/PositionWithAffinity.cpp
@@ -8,7 +8,7 @@
namespace blink {
template <typename Strategy>
-PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const PositionAlgorithm<Strategy>& position, EAffinity affinity)
+PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const PositionAlgorithm<Strategy>& position, TextAffinity affinity)
: m_position(position)
, m_affinity(affinity)
{
@@ -16,7 +16,7 @@ PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const Posit
template <typename Strategy>
PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate()
- : m_affinity(DOWNSTREAM)
+ : m_affinity(TextAffinity::Downstream)
{
}
« no previous file with comments | « Source/core/editing/PositionWithAffinity.h ('k') | Source/core/editing/RenderedPosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698