| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| index b6287cec0f2645ef282a095144cd84fe33799d9d..23ccbf0b5b6e46b4a8a9c87e885174e19b14f83d 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -763,20 +763,20 @@ LayoutRect LayoutText::localCaretRect(InlineBox* inlineBox,
|
|
|
| bool rightAligned = false;
|
| switch (cbStyle.textAlign()) {
|
| - case RIGHT:
|
| - case WEBKIT_RIGHT:
|
| + case ETextAlign::Right:
|
| + case ETextAlign::WebkitRight:
|
| rightAligned = true;
|
| break;
|
| - case LEFT:
|
| - case WEBKIT_LEFT:
|
| - case CENTER:
|
| - case WEBKIT_CENTER:
|
| + case ETextAlign::Left:
|
| + case ETextAlign::WebkitLeft:
|
| + case ETextAlign::Center:
|
| + case ETextAlign::WebkitCenter:
|
| break;
|
| - case JUSTIFY:
|
| - case TASTART:
|
| + case ETextAlign::Justify:
|
| + case ETextAlign::Start:
|
| rightAligned = !cbStyle.isLeftToRightDirection();
|
| break;
|
| - case TAEND:
|
| + case ETextAlign::End:
|
| rightAligned = cbStyle.isLeftToRightDirection();
|
| break;
|
| }
|
|
|