Index: Source/web/ValidationMessageClientImpl.cpp |
diff --git a/Source/web/ValidationMessageClientImpl.cpp b/Source/web/ValidationMessageClientImpl.cpp |
index 66a570d0e007e68d68ccc026532187ba6b28be27..2f3059cfaf8602fce0be0c39eeb158341b198712 100644 |
--- a/Source/web/ValidationMessageClientImpl.cpp |
+++ b/Source/web/ValidationMessageClientImpl.cpp |
@@ -81,9 +81,9 @@ void ValidationMessageClientImpl::showValidationMessage(const Element& anchor, c |
const double secondPerCharacter = 0.05; |
const double statusCheckInterval = 0.1; |
- m_webView.client()->showValidationMessage(anchorInRootView, m_message, messageDir == LTR ? WebTextDirectionLeftToRight: WebTextDirectionRightToLeft, |
- subMessage, subMessageDir == LTR ? WebTextDirectionLeftToRight: WebTextDirectionRightToLeft); |
- m_webView.client()->showValidationMessage(anchorInRootView, m_message, subMessage, messageDir == LTR ? WebTextDirectionLeftToRight: WebTextDirectionRightToLeft); |
+ m_webView.client()->showValidationMessage(anchorInRootView, m_message, toWebTextDirection(messageDir), |
+ subMessage, toWebTextDirection(subMessageDir)); |
+ m_webView.client()->showValidationMessage(anchorInRootView, m_message, subMessage, toWebTextDirection(messageDir)); |
m_finishTime = monotonicallyIncreasingTime() + std::max(minimumSecondToShowValidationMessage, (message.length() + subMessage.length()) * secondPerCharacter); |
// FIXME: We should invoke checkAnchorStatus actively when layout, scroll, |