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 16 matching lines...) Expand all Loading... |
27 #include "core/html/HTMLFormControlElement.h" | 27 #include "core/html/HTMLFormControlElement.h" |
28 #include <wtf/OwnPtr.h> | 28 #include <wtf/OwnPtr.h> |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 class FormAssociatedElement; | 32 class FormAssociatedElement; |
33 class HTMLCollection; | 33 class HTMLCollection; |
34 | 34 |
35 class HTMLFieldSetElement : public HTMLFormControlElement { | 35 class HTMLFieldSetElement : public HTMLFormControlElement { |
36 public: | 36 public: |
37 static PassRefPtr<HTMLFieldSetElement> create(const QualifiedName&, Document
*, HTMLFormElement*); | 37 static Result<HTMLFieldSetElement> create(const QualifiedName&, Document*, H
TMLFormElement*); |
38 HTMLLegendElement* legend() const; | 38 HTMLLegendElement* legend() const; |
39 | 39 |
40 PassRefPtr<HTMLCollection> elements(); | 40 PassRefPtr<HTMLCollection> elements(); |
41 | 41 |
42 const Vector<FormAssociatedElement*>& associatedElements() const; | 42 const Vector<FormAssociatedElement*>& associatedElements() const; |
43 unsigned length() const; | 43 unsigned length() const; |
44 | 44 |
| 45 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 46 |
45 protected: | 47 protected: |
46 virtual void disabledAttributeChanged() OVERRIDE; | 48 virtual void disabledAttributeChanged() OVERRIDE; |
47 | 49 |
48 private: | 50 private: |
49 HTMLFieldSetElement(const QualifiedName&, Document*, HTMLFormElement*); | 51 HTMLFieldSetElement(const QualifiedName&, Document*, HTMLFormElement*); |
50 | 52 |
51 virtual bool isEnumeratable() const { return true; } | 53 virtual bool isEnumeratable() const { return true; } |
52 virtual bool supportsFocus() const; | 54 virtual bool supportsFocus() const; |
53 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); | 55 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
54 virtual const AtomicString& formControlType() const; | 56 virtual const AtomicString& formControlType() const; |
55 virtual bool recalcWillValidate() const { return false; } | 57 virtual bool recalcWillValidate() const { return false; } |
56 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; | 58 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node*
afterChange, int childCountDelta) OVERRIDE; |
57 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } | 59 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
58 | 60 |
59 static void invalidateDisabledStateUnder(Element*); | 61 static void invalidateDisabledStateUnder(Element*); |
60 void refreshElementsIfNeeded() const; | 62 void refreshElementsIfNeeded() const; |
61 | 63 |
62 mutable Vector<FormAssociatedElement*> m_associatedElements; | 64 mutable Vector<FormAssociatedElement*> m_associatedElements; |
63 // When dom tree is modified, we have to refresh the m_associatedElements ar
ray. | 65 // When dom tree is modified, we have to refresh the m_associatedElements ar
ray. |
64 mutable uint64_t m_documentVersion; | 66 mutable uint64_t m_documentVersion; |
65 }; | 67 }; |
66 | 68 |
67 } // namespace | 69 } // namespace |
68 | 70 |
69 #endif | 71 #endif |
OLD | NEW |