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

Unified Diff: Source/core/editing/RenderedPosition.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/RenderedPosition.h ('k') | Source/core/editing/TextAffinity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/RenderedPosition.cpp
diff --git a/Source/core/editing/RenderedPosition.cpp b/Source/core/editing/RenderedPosition.cpp
index 983f61ed826b3afda65556c3eb73116509021b6f..eb34af25a5e9278577e4a6a5a4038dc674fd40de 100644
--- a/Source/core/editing/RenderedPosition.cpp
+++ b/Source/core/editing/RenderedPosition.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "core/editing/RenderedPosition.h"
-#include "core/editing/Position.h"
+#include "core/editing/TextAffinity.h"
#include "core/editing/VisiblePosition.h"
#include "core/layout/compositing/CompositedSelectionBound.h"
#include "core/paint/DeprecatedPaintLayer.h"
@@ -83,7 +83,7 @@ RenderedPosition::RenderedPosition(const VisiblePosition& position)
m_layoutObject = layoutObjectFromPosition(position.deepEquivalent());
}
-RenderedPosition::RenderedPosition(const Position& position, EAffinity affinity)
+RenderedPosition::RenderedPosition(const Position& position, TextAffinity affinity)
: m_layoutObject(nullptr)
, m_inlineBox(nullptr)
, m_offset(0)
@@ -101,7 +101,7 @@ RenderedPosition::RenderedPosition(const Position& position, EAffinity affinity)
m_layoutObject = layoutObjectFromPosition(position);
}
-RenderedPosition::RenderedPosition(const PositionInComposedTree& position, EAffinity affinity)
+RenderedPosition::RenderedPosition(const PositionInComposedTree& position, TextAffinity affinity)
: RenderedPosition(toPositionInDOMTree(position), affinity)
{
}
« no previous file with comments | « Source/core/editing/RenderedPosition.h ('k') | Source/core/editing/TextAffinity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698