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

Unified Diff: Source/core/dom/Position.cpp

Issue 1262503010: Get rid of a redundant createLegacyEditingPosition() call in PositionAlgorithm<Strategy>::upstream() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-04T13:43:22 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Position.cpp
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp
index 9020cc3f5414e1285d8e5e11494c4c188954f849..95956b78acecdc9dc8e46c30ff5a477962f3d28e 100644
--- a/Source/core/dom/Position.cpp
+++ b/Source/core/dom/Position.cpp
@@ -842,7 +842,7 @@ PositionAlgorithm<Strategy> PositionAlgorithm<Strategy>::downstream(EditingBound
if (layoutObject->isText() && toLayoutText(layoutObject)->firstTextBox()) {
if (currentNode != startNode) {
ASSERT(currentPos.atStartOfNode());
- return createLegacyEditingPosition(currentNode, layoutObject->caretMinOffset());
+ return PositionAlgorithm<Strategy>(currentNode, layoutObject->caretMinOffset());
}
unsigned textOffset = currentPos.offsetInLeafNode();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698