| Index: third_party/WebKit/Source/platform/LengthBox.cpp
|
| diff --git a/third_party/WebKit/Source/platform/LengthBox.cpp b/third_party/WebKit/Source/platform/LengthBox.cpp
|
| index 975087cbf25d7b800b5d58f8d92f431d5e63055e..2dede65da8d5e421b2a816bae85a6538bd50fbce 100644
|
| --- a/third_party/WebKit/Source/platform/LengthBox.cpp
|
| +++ b/third_party/WebKit/Source/platform/LengthBox.cpp
|
| @@ -83,8 +83,8 @@ const Length& LengthBox::Start(WritingMode writing_mode,
|
| const Length& right,
|
| const Length& bottom) {
|
| if (IsHorizontalWritingMode(writing_mode))
|
| - return IsLeftToRightDirection(direction) ? left : right;
|
| - return IsLeftToRightDirection(direction) ? top : bottom;
|
| + return IsLtr(direction) ? left : right;
|
| + return IsLtr(direction) ? top : bottom;
|
| }
|
|
|
| const Length& LengthBox::End(WritingMode writing_mode,
|
| @@ -94,8 +94,8 @@ const Length& LengthBox::End(WritingMode writing_mode,
|
| const Length& right,
|
| const Length& bottom) {
|
| if (IsHorizontalWritingMode(writing_mode))
|
| - return IsLeftToRightDirection(direction) ? right : left;
|
| - return IsLeftToRightDirection(direction) ? bottom : top;
|
| + return IsLtr(direction) ? right : left;
|
| + return IsLtr(direction) ? bottom : top;
|
| }
|
|
|
| const Length& LengthBox::Over(WritingMode writing_mode,
|
|
|