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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp

Issue 1868473002: Use PositionMoveType::GraphemeBoundary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove PositionMoveType::CodePoint Created 4 years, 8 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 | « third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp
index 76ff5cc293b8fad70114007b257f48305334232d..6b72371526623f8f3d37490e00d6f84867a786ce 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp
@@ -195,9 +195,7 @@ void InsertTextCommand::doApply(EditingState* editingState)
endPosition = insertTab(startPosition, editingState);
if (editingState->isAborted())
return;
- // TODO(yosin) We should use |PositionMoveType::CodePoint| for
- // |previousPositionOf()|.
- startPosition = previousPositionOf(endPosition, PositionMoveType::CodePoint);
+ startPosition = previousPositionOf(endPosition, PositionMoveType::GraphemeCluster);
if (placeholder.isNotNull())
removePlaceholderAt(placeholder);
} else {
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698