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

Unified Diff: Source/core/layout/LayoutBlock.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/editing/VisiblePosition.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBlock.cpp
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp
index 00fd49ac48a81fc9340041380d47c71dad147a54..d1377e4d43d5b8c600eee19e2bde5342796e9de8 100644
--- a/Source/core/layout/LayoutBlock.cpp
+++ b/Source/core/layout/LayoutBlock.cpp
@@ -1887,7 +1887,7 @@ PositionWithAffinity LayoutBlock::positionForPointWithInlineChildren(const Layou
box = newBox;
}
// y coordinate is above first root line box, so return the start of the first
- return PositionWithAffinity(positionForBox(box, true), DOWNSTREAM);
+ return PositionWithAffinity(positionForBox(box, true));
}
}
@@ -1905,7 +1905,7 @@ PositionWithAffinity LayoutBlock::positionForPointWithInlineChildren(const Layou
ASSERT(moveCaretToBoundary);
InlineBox* logicallyLastBox;
if (lastRootBoxWithChildren->getLogicalEndBoxWithNode(logicallyLastBox))
- return PositionWithAffinity(positionForBox(logicallyLastBox, false), DOWNSTREAM);
+ return PositionWithAffinity(positionForBox(logicallyLastBox, false));
}
// Can't reach this. We have a root line box, but it has no kids.
« no previous file with comments | « Source/core/editing/VisiblePosition.cpp ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698