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, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool hasAutofocused() { return m_hasAutofocused; } | 98 bool hasAutofocused() { return m_hasAutofocused; } |
99 void setAutofocused() { m_hasAutofocused = true; } | 99 void setAutofocused() { m_hasAutofocused = true; } |
100 | 100 |
101 static Result<HTMLFormControlElement> enclosingFormControlElement(Node*); | 101 static Result<HTMLFormControlElement> enclosingFormControlElement(Node*); |
102 | 102 |
103 using Node::ref; | 103 using Node::ref; |
104 using Node::deref; | 104 using Node::deref; |
105 | 105 |
106 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 106 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
107 | 107 |
108 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; | |
109 | |
110 protected: | 108 protected: |
111 HTMLFormControlElement(const QualifiedName& tagName, Handle<Document>, HTMLF
ormElement*); | 109 HTMLFormControlElement(const QualifiedName& tagName, Handle<Document>, HTMLF
ormElement*); |
112 | 110 |
113 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 111 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
114 virtual void requiredAttributeChanged(); | 112 virtual void requiredAttributeChanged(); |
115 virtual void disabledAttributeChanged(); | 113 virtual void disabledAttributeChanged(); |
116 virtual void attach(); | 114 virtual void attach(); |
117 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 115 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
118 virtual void removedFrom(ContainerNode*) OVERRIDE; | 116 virtual void removedFrom(ContainerNode*) OVERRIDE; |
119 virtual void didMoveToNewDocument(Handle<Document> oldDocument) OVERRIDE; | 117 virtual void didMoveToNewDocument(Handle<Document> oldDocument) OVERRIDE; |
120 | 118 |
121 virtual bool supportsFocus() const; | 119 virtual bool supportsFocus() const; |
122 virtual bool isKeyboardFocusable(KeyboardEvent*) const; | 120 virtual bool isKeyboardFocusable(KeyboardEvent*) const; |
123 virtual bool isMouseFocusable() const; | 121 virtual bool isMouseFocusable() const; |
124 | 122 |
125 virtual void didRecalcStyle(StyleChange) OVERRIDE; | 123 virtual void didRecalcStyle(StyleChange) OVERRIDE; |
126 | 124 |
127 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); | 125 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); |
128 | 126 |
129 // This must be called any time the result of willValidate() has changed. | 127 // This must be called any time the result of willValidate() has changed. |
130 void setNeedsWillValidateCheck(); | 128 void setNeedsWillValidateCheck(); |
131 virtual bool recalcWillValidate() const; | 129 virtual bool recalcWillValidate() const; |
132 | 130 |
133 bool validationMessageShadowTreeContains(Node*) const; | 131 bool validationMessageShadowTreeContains(Node*) const; |
134 | 132 |
| 133 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 134 |
135 private: | 135 private: |
136 virtual void refFormAssociatedElement() { ref(); } | 136 virtual void refFormAssociatedElement() { ref(); } |
137 virtual void derefFormAssociatedElement() { deref(); } | 137 virtual void derefFormAssociatedElement() { deref(); } |
138 | 138 |
139 virtual bool isFormControlElement() const { return true; } | 139 virtual bool isFormControlElement() const { return true; } |
140 virtual bool alwaysCreateUserAgentShadowRoot() const OVERRIDE { return true;
} | 140 virtual bool alwaysCreateUserAgentShadowRoot() const OVERRIDE { return true;
} |
141 | 141 |
142 virtual short tabIndex() const; | 142 virtual short tabIndex() const; |
143 | 143 |
144 virtual HTMLFormElement* virtualForm() const; | 144 virtual HTMLFormElement* virtualForm() const; |
(...skipping 23 matching lines...) Expand all Loading... |
168 bool m_isValid : 1; | 168 bool m_isValid : 1; |
169 | 169 |
170 bool m_wasChangedSinceLastFormControlChangeEvent : 1; | 170 bool m_wasChangedSinceLastFormControlChangeEvent : 1; |
171 | 171 |
172 bool m_hasAutofocused : 1; | 172 bool m_hasAutofocused : 1; |
173 }; | 173 }; |
174 | 174 |
175 } // namespace | 175 } // namespace |
176 | 176 |
177 #endif | 177 #endif |
OLD | NEW |