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

Unified Diff: Source/core/html/HTMLFieldSetElement.h

Issue 646273004: Implement :valid and :invalid pseudoclass for <fieldset> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pull Created 6 years, 2 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/HTMLFieldSetElement.h
diff --git a/Source/core/html/HTMLFieldSetElement.h b/Source/core/html/HTMLFieldSetElement.h
index dd2bceb119628de4b4123cf1d329543c84c479a4..047e19e03c61c304daa3cb20576aa727fb9c4065 100644
--- a/Source/core/html/HTMLFieldSetElement.h
+++ b/Source/core/html/HTMLFieldSetElement.h
@@ -42,6 +42,8 @@ public:
const FormAssociatedElement::List& associatedElements() const;
+ void setNeedsValidityCheck();
+
protected:
virtual void disabledAttributeChanged() override;
@@ -53,6 +55,8 @@ private:
virtual RenderObject* createRenderer(RenderStyle*) override;
virtual const AtomicString& formControlType() const override;
virtual bool recalcWillValidate() const override { return false; }
+ virtual bool matchesValidityPseudoClasses() const override final;
+ virtual bool isValidElement() override final;
virtual void childrenChanged(const ChildrenChange&) override;
virtual bool areAuthorShadowsAllowed() const override { return false; }
« no previous file with comments | « LayoutTests/fast/forms/fieldset-pseudo-valid-style-expected.txt ('k') | Source/core/html/HTMLFieldSetElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698