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

Unified Diff: Source/core/html/HTMLFormElement.cpp

Issue 616443002: Implement :valid and :invalid pseudoclass for <form> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix the problem with shared element style Created 6 years, 3 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/HTMLFormElement.cpp
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp
index 013dfd394be8dbef75ae85657bcc183e80b7aa84..e8baabf731e07ed0a3858ede534f1606dfb7755c 100644
--- a/Source/core/html/HTMLFormElement.cpp
+++ b/Source/core/html/HTMLFormElement.cpp
@@ -109,6 +109,16 @@ void HTMLFormElement::trace(Visitor* visitor)
HTMLElement::trace(visitor);
}
+bool HTMLFormElement::willValidate() const
+{
+ return true;
+}
+
+bool HTMLFormElement::isValidElement()
+{
+ return checkValidity();
+}
+
bool HTMLFormElement::rendererIsNeeded(const RenderStyle& style)
{
if (!m_wasDemoted)

Powered by Google App Engine
This is Rietveld 408576698