Chromium Code Reviews| 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) |
|
leviw_travelin_and_unemployed
2014/10/14 23:04:40
Why are you changing this function? isEnclosingBox
yosin_UTC9
2014/10/15 00:55:22
Since |TextDirection| has two values, |LTR| and |R
Habib Virji
2014/10/16 15:55:09
Done.
|
| { |
| 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 |