| 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;
|
|
|