| Index: third_party/WebKit/Source/core/editing/EditingUtilities.h
|
| diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.h b/third_party/WebKit/Source/core/editing/EditingUtilities.h
|
| index 7f24f312bbb627f95d0907420623dbd707678ec9..1e3c6bc7733eadd0229d009007735825791547e8 100644
|
| --- a/third_party/WebKit/Source/core/editing/EditingUtilities.h
|
| +++ b/third_party/WebKit/Source/core/editing/EditingUtilities.h
|
| @@ -418,6 +418,18 @@ String stringWithRebalancedWhitespace(const String&,
|
| const String& nonBreakingSpaceString();
|
|
|
| // -------------------------------------------------------------------------
|
| +// Distance calculation functions
|
| +// -------------------------------------------------------------------------
|
| +
|
| +// If current position is at grapheme boundary, return 0; otherwise, return the
|
| +// distance to its nearest left grapheme boundary.
|
| +size_t computeDistanceToLeftGraphemeBoundary(const Position&);
|
| +
|
| +// If current position is at grapheme boundary, return 0; otherwise, return the
|
| +// distance to its nearest right grapheme boundary.
|
| +size_t computeDistanceToRightGraphemeBoundary(const Position&);
|
| +
|
| +// -------------------------------------------------------------------------
|
| // Events
|
| // -------------------------------------------------------------------------
|
|
|
|
|