Index: Source/core/rendering/RenderText.cpp |
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp |
index 88ac68e1c46dc80056d93ceea742777e081b4d86..d5cd9386fe856e2cf1cb6ba5a9994492f07d9887 100644 |
--- a/Source/core/rendering/RenderText.cpp |
+++ b/Source/core/rendering/RenderText.cpp |
@@ -693,22 +693,18 @@ LayoutRect RenderText::localCaretRect(InlineBox* inlineBox, int caretOffset, Lay |
rightEdge = max<float>(cb->logicalWidth(), rootRight); |
bool rightAligned = false; |
- switch (cbStyle->textAlign()) { |
+ switch (simplifiedTextAlign(cbStyle->textAlign())) { |
case RIGHT: |
- case WEBKIT_RIGHT: |
rightAligned = true; |
break; |
case LEFT: |
- case WEBKIT_LEFT: |
case CENTER: |
- case WEBKIT_CENTER: |
break; |
case JUSTIFY: |
- case TASTART: |
rightAligned = !cbStyle->isLeftToRightDirection(); |
break; |
- case TAEND: |
- rightAligned = cbStyle->isLeftToRightDirection(); |
+ default: |
+ ASSERT_NOT_REACHED(); |
break; |
} |