Index: Source/core/rendering/RenderBoxModelObject.cpp |
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp |
index d5dfa279e43f7722398d7af39a0c67016f61c87c..48934da1ad4136924430a8fce4b9ee403151285c 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.cpp |
+++ b/Source/core/rendering/RenderBoxModelObject.cpp |
@@ -2628,26 +2628,21 @@ LayoutRect RenderBoxModelObject::localCaretRectForEmptyElement(LayoutUnit width, |
CaretAlignment alignment = alignLeft; |
- switch (currentStyle->textAlign()) { |
+ switch (simplifiedTextAlign(currentStyle->textAlign())) { |
case LEFT: |
- case WEBKIT_LEFT: |
break; |
case CENTER: |
- case WEBKIT_CENTER: |
alignment = alignCenter; |
break; |
case RIGHT: |
- case WEBKIT_RIGHT: |
alignment = alignRight; |
break; |
case JUSTIFY: |
- case TASTART: |
if (!currentStyle->isLeftToRightDirection()) |
alignment = alignRight; |
break; |
- case TAEND: |
- if (currentStyle->isLeftToRightDirection()) |
- alignment = alignRight; |
+ default: |
+ ASSERT_NOT_REACHED(); |
break; |
} |