| Index: Source/core/editing/htmlediting.cpp
|
| diff --git a/Source/core/editing/htmlediting.cpp b/Source/core/editing/htmlediting.cpp
|
| index 3813ae4cacc9522a4702d2e33e1404b4538b4432..b3c1a19bdc3088881394c445600d0b2eb524649a 100644
|
| --- a/Source/core/editing/htmlediting.cpp
|
| +++ b/Source/core/editing/htmlediting.cpp
|
| @@ -351,13 +351,13 @@ bool inSameContainingBlockFlowElement(Node* a, Node* b)
|
| return a && b && enclosingBlockFlowElement(*a) == enclosingBlockFlowElement(*b);
|
| }
|
|
|
| -TextDirection directionOfEnclosingBlock(const Position& position)
|
| +bool isEnclosingBoxHasLeftToRightDirection(const Position& position)
|
| {
|
| Element* enclosingBlockElement = enclosingBlock(position.containerNode());
|
| if (!enclosingBlockElement)
|
| - return LTR;
|
| + return true;
|
| RenderObject* renderer = enclosingBlockElement->renderer();
|
| - return renderer ? renderer->style()->direction() : LTR;
|
| + return !renderer || renderer->style()->direction() == LTR;
|
| }
|
|
|
| // This method is used to create positions in the DOM. It returns the maximum valid offset
|
|
|