OLD | NEW |
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 Loading... |
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 |
OLD | NEW |