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

Unified Diff: Source/core/layout/LayoutObject.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/layout/LayoutObject.h ('k') | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 0bc3a5cf569ef43c6da2a616bc7146b981e593ce..28c61e1fc62b67b095b35bab84d089161fb73d33 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -36,6 +36,7 @@
#include "core/editing/EditingBoundary.h"
#include "core/editing/EditingUtilities.h"
#include "core/editing/FrameSelection.h"
+#include "core/editing/TextAffinity.h"
#include "core/fetch/ResourceLoadPriorityOptimizer.h"
#include "core/fetch/ResourceLoader.h"
#include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h"
@@ -2984,7 +2985,7 @@ Element* LayoutObject::offsetParent() const
return node && node->isElementNode() ? toElement(node) : nullptr;
}
-PositionWithAffinity LayoutObject::createPositionWithAffinity(int offset, EAffinity affinity)
+PositionWithAffinity LayoutObject::createPositionWithAffinity(int offset, TextAffinity affinity)
{
// If this is a non-anonymous layoutObject in an editable area, then it's simple.
if (Node* node = nonPseudoNode()) {
@@ -3038,7 +3039,7 @@ PositionWithAffinity LayoutObject::createPositionWithAffinity(int offset, EAffin
PositionWithAffinity LayoutObject::createPositionWithAffinity(int offset)
{
- return createPositionWithAffinity(offset, DOWNSTREAM);
+ return createPositionWithAffinity(offset, TextAffinity::Downstream);
}
PositionWithAffinity LayoutObject::createPositionWithAffinity(const Position& position)
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698