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

Unified Diff: Source/core/editing/SelectionController.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/Editor.cpp ('k') | Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/SelectionController.cpp
diff --git a/Source/core/editing/SelectionController.cpp b/Source/core/editing/SelectionController.cpp
index 4e5904e7b3f9f40a0de10e23b1bc946a45a39a98..1162e5fc754d5ceb2c4ff73ac9676862bcbef70c 100644
--- a/Source/core/editing/SelectionController.cpp
+++ b/Source/core/editing/SelectionController.cpp
@@ -157,7 +157,7 @@ bool SelectionController::handleMousePressEventSingleClickAlgorithm(const MouseE
PositionWithAffinity eventPos = innerNode->layoutObject()->positionForPoint(event.localPoint());
VisiblePosition visiblePos(Strategy::toPositionType(eventPos.position()), eventPos.affinity());
if (visiblePos.isNull())
- visiblePos = VisiblePosition(firstPositionInOrBeforeNode(innerNode), DOWNSTREAM);
+ visiblePos = VisiblePosition(firstPositionInOrBeforeNode(innerNode));
PositionType pos = Strategy::toPositionType(visiblePos.deepEquivalent());
VisibleSelection newSelection = selection().selection();
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698