Index: third_party/WebKit/WebCore/dom/Position.h |
=================================================================== |
--- third_party/WebKit/WebCore/dom/Position.h (revision 9383) |
+++ third_party/WebKit/WebCore/dom/Position.h (working copy) |
@@ -40,11 +40,7 @@ |
class Range; |
class RenderObject; |
-enum PositionMoveType { |
- CodePoint, // Move by a single code point. |
- Character, // Move to the next Unicode character break. |
- BackwardDeletion // Subject to platform conventions. |
-}; |
+enum EUsingComposedCharacters { NotUsingComposedCharacters = false, UsingComposedCharacters = true }; |
// FIXME: Reduce the number of operations we have on a Position. |
// This should be more like a humble struct, without so many different |
@@ -73,10 +69,9 @@ |
// Move up or down the DOM by one position. |
// Offsets are computed using render text for nodes that have renderers - but note that even when |
// using composed characters, the result may be inside a single user-visible character if a ligature is formed. |
- Position previous(PositionMoveType = CodePoint) const; |
- Position next(PositionMoveType = CodePoint) const; |
+ Position previous(EUsingComposedCharacters usingComposedCharacters=NotUsingComposedCharacters) const; |
+ Position next(EUsingComposedCharacters usingComposedCharacters=NotUsingComposedCharacters) const; |
static int uncheckedPreviousOffset(const Node*, int current); |
- static int uncheckedPreviousOffsetForBackwardDeletion(const Node*, int current); |
static int uncheckedNextOffset(const Node*, int current); |
bool atStart() const; |