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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1300493003: Get rid of a redundant argument DOWNSTREAM from PositionWithAffinity constructor call sites (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T11:03:14 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/layout/LayoutBlock.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 0892709745635288d2a7b1efe0030c0615333d8e..7e558666a6c01aa21c7a0872a56b23c247aac1b7 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -3013,7 +3013,7 @@ PositionWithAffinity LayoutObject::createPositionWithAffinity(int offset, EAffin
// Find non-anonymous content after.
for (LayoutObject* layoutObject = child->nextInPreOrder(parent); layoutObject; layoutObject = layoutObject->nextInPreOrder(parent)) {
if (Node* node = layoutObject->nonPseudoNode())
- return PositionWithAffinity(firstPositionInOrBeforeNode(node), DOWNSTREAM);
+ return PositionWithAffinity(firstPositionInOrBeforeNode(node));
}
// Find non-anonymous content before.
@@ -3021,12 +3021,12 @@ PositionWithAffinity LayoutObject::createPositionWithAffinity(int offset, EAffin
if (layoutObject == parent)
break;
if (Node* node = layoutObject->nonPseudoNode())
- return PositionWithAffinity(lastPositionInOrAfterNode(node), DOWNSTREAM);
+ return PositionWithAffinity(lastPositionInOrAfterNode(node));
}
// Use the parent itself unless it too is anonymous.
if (Node* node = parent->nonPseudoNode())
- return PositionWithAffinity(firstPositionInOrBeforeNode(node), DOWNSTREAM);
+ return PositionWithAffinity(firstPositionInOrBeforeNode(node));
// Repeat at the next level up.
child = parent;
« no previous file with comments | « Source/core/layout/LayoutBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698