Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: Source/core/html/forms/ValidationMessage.cpp

Issue 389343002: Custom validation message to take into account text direction (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/forms/ValidationMessage.cpp
diff --git a/Source/core/html/forms/ValidationMessage.cpp b/Source/core/html/forms/ValidationMessage.cpp
index df7475f4c3e7bec1d98221c690cec8c1be44b0b2..02861b6903fbb46d4369098d140d82925ba7f912 100644
--- a/Source/core/html/forms/ValidationMessage.cpp
+++ b/Source/core/html/forms/ValidationMessage.cpp
@@ -63,7 +63,7 @@ ValidationMessageClient* ValidationMessage::validationMessageClient() const
return &page->validationMessageClient();
}
-void ValidationMessage::updateValidationMessage(const String& message)
+void ValidationMessage::updateValidationMessage(const String& message, bool customError)
{
ValidationMessageClient* client = validationMessageClient();
if (!client)
@@ -71,7 +71,7 @@ void ValidationMessage::updateValidationMessage(const String& message)
if (message.isEmpty())
requestToHideMessage();
else
- client->showValidationMessage(*m_element, message);
+ client->showValidationMessage(*m_element, message, customError);
}
void ValidationMessage::requestToHideMessage()

Powered by Google App Engine
This is Rietveld 408576698