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

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

Issue 1285233004: Get rid of a redundant argument DOWNSTREAM from VisiblePosition constructor call sites (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T12:36:19 Rebase 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/VisibleUnits.cpp ('k') | Source/core/editing/commands/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/commands/InsertTextCommand.cpp
diff --git a/Source/core/editing/commands/InsertTextCommand.cpp b/Source/core/editing/commands/InsertTextCommand.cpp
index 50f2c14da72d26b20ef3f98748ba9d519bc295ef..0e4d680553597ad0a07a852eaf02684fe98577a4 100644
--- a/Source/core/editing/commands/InsertTextCommand.cpp
+++ b/Source/core/editing/commands/InsertTextCommand.cpp
@@ -231,7 +231,7 @@ void InsertTextCommand::doApply()
Position InsertTextCommand::insertTab(const Position& pos)
{
- Position insertPos = VisiblePosition(pos, DOWNSTREAM).deepEquivalent();
+ Position insertPos = VisiblePosition(pos).deepEquivalent();
if (insertPos.isNull())
return pos;
« no previous file with comments | « Source/core/editing/VisibleUnits.cpp ('k') | Source/core/editing/commands/ReplaceSelectionCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698