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

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

Issue 225393002: Apply OwnPtr|PassOwnPtr to m_validationMessageClient and setValidationMessageClient() in Page class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/core/page/Page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/ValidationMessage.cpp
diff --git a/Source/core/html/forms/ValidationMessage.cpp b/Source/core/html/forms/ValidationMessage.cpp
index 57ee0eb6b8f37ecb778f1018bff07398770d4bd7..78046464722525708059d86d852328735944ea5b 100644
--- a/Source/core/html/forms/ValidationMessage.cpp
+++ b/Source/core/html/forms/ValidationMessage.cpp
@@ -60,9 +60,8 @@ ValidationMessageClient* ValidationMessage::validationMessageClient() const
Page* page = m_element->document().page();
if (!page)
return 0;
- // The form valdiation feature requires ValidationMessageClient.
- ASSERT(page->validationMessageClient());
- return page->validationMessageClient();
+
+ return &page->validationMessageClient();
}
void ValidationMessage::updateValidationMessage(const String& message)
« no previous file with comments | « no previous file | Source/core/page/Page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698