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

Side by Side Diff: Source/core/html/HTMLFieldSetElement.h

Issue 943303002: Simplify form validation handling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add a test Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 23 matching lines...) Expand all
34 DEFINE_WRAPPERTYPEINFO(); 34 DEFINE_WRAPPERTYPEINFO();
35 public: 35 public:
36 static PassRefPtrWillBeRawPtr<HTMLFieldSetElement> create(Document&, HTMLFor mElement*); 36 static PassRefPtrWillBeRawPtr<HTMLFieldSetElement> create(Document&, HTMLFor mElement*);
37 DECLARE_VIRTUAL_TRACE(); 37 DECLARE_VIRTUAL_TRACE();
38 HTMLLegendElement* legend() const; 38 HTMLLegendElement* legend() const;
39 39
40 PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> elements(); 40 PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> elements();
41 41
42 const FormAssociatedElement::List& associatedElements() const; 42 const FormAssociatedElement::List& associatedElements() const;
43 43
44 void setNeedsValidityCheck();
45
46 protected: 44 protected:
47 virtual void disabledAttributeChanged() override; 45 virtual void disabledAttributeChanged() override;
48 46
49 private: 47 private:
50 HTMLFieldSetElement(Document&, HTMLFormElement*); 48 HTMLFieldSetElement(Document&, HTMLFormElement*);
51 49
52 virtual bool isEnumeratable() const override { return true; } 50 virtual bool isEnumeratable() const override { return true; }
53 virtual bool supportsFocus() const override; 51 virtual bool supportsFocus() const override;
54 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 52 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
55 virtual const AtomicString& formControlType() const override; 53 virtual const AtomicString& formControlType() const override;
56 virtual bool recalcWillValidate() const override { return false; } 54 virtual bool recalcWillValidate() const override { return false; }
57 virtual bool matchesValidityPseudoClasses() const override final; 55 virtual bool matchesValidityPseudoClasses() const override final;
58 virtual bool isValidElement() override final; 56 virtual bool isValidElement() override final;
59 virtual void childrenChanged(const ChildrenChange&) override; 57 virtual void childrenChanged(const ChildrenChange&) override;
60 virtual bool areAuthorShadowsAllowed() const override { return false; } 58 virtual bool areAuthorShadowsAllowed() const override { return false; }
61 59
62 static void invalidateDisabledStateUnder(Element&); 60 static void invalidateDisabledStateUnder(Element&);
63 void refreshElementsIfNeeded() const; 61 void refreshElementsIfNeeded() const;
64 62
65 mutable FormAssociatedElement::List m_associatedElements; 63 mutable FormAssociatedElement::List m_associatedElements;
66 // When dom tree is modified, we have to refresh the m_associatedElements ar ray. 64 // When dom tree is modified, we have to refresh the m_associatedElements ar ray.
67 mutable uint64_t m_documentVersion; 65 mutable uint64_t m_documentVersion;
68 }; 66 };
69 67
70 } // namespace blink 68 } // namespace blink
71 69
72 #endif // HTMLFieldSetElement_h 70 #endif // HTMLFieldSetElement_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/ValidityState-valueMissing-001-expected.txt ('k') | Source/core/html/HTMLFieldSetElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698