| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 121 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 122 virtual void requiredAttributeChanged(); | 122 virtual void requiredAttributeChanged(); |
| 123 virtual void disabledAttributeChanged(); | 123 virtual void disabledAttributeChanged(); |
| 124 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 124 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
| 125 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 125 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 126 virtual void removedFrom(ContainerNode*) OVERRIDE; | 126 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 127 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 127 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
| 128 | 128 |
| 129 virtual bool supportsFocus() const OVERRIDE; | 129 virtual bool supportsFocus() const OVERRIDE; |
| 130 virtual bool isKeyboardFocusable() const OVERRIDE; | 130 virtual bool isKeyboardFocusable() const OVERRIDE; |
| 131 virtual bool shouldShowFocusRingOnMouseFocus() const; | 131 virtual bool shouldShowFocusRingOnMouseFocus() const OVERRIDE; |
| 132 virtual bool shouldHaveFocusAppearance() const OVERRIDE FINAL; | |
| 133 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusType) OVERR
IDE; | |
| 134 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE; | 132 virtual void dispatchBlurEvent(Element* newFocusedElement) OVERRIDE; |
| 135 virtual void willCallDefaultEventHandler(const Event&) OVERRIDE FINAL; | |
| 136 | 133 |
| 137 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; | 134 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; |
| 138 | 135 |
| 139 // This must be called any time the result of willValidate() has changed. | 136 // This must be called any time the result of willValidate() has changed. |
| 140 void setNeedsWillValidateCheck(); | 137 void setNeedsWillValidateCheck(); |
| 141 virtual bool recalcWillValidate() const; | 138 virtual bool recalcWillValidate() const; |
| 142 | 139 |
| 143 virtual void resetImpl() { } | 140 virtual void resetImpl() { } |
| 144 virtual bool supportsAutofocus() const; | 141 virtual bool supportsAutofocus() const; |
| 145 | 142 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 176 // initialize it with a virtual function in the constructor. m_willValidate | 173 // initialize it with a virtual function in the constructor. m_willValidate |
| 177 // is not deterministic as long as m_willValidateInitialized is false. | 174 // is not deterministic as long as m_willValidateInitialized is false. |
| 178 mutable bool m_willValidateInitialized: 1; | 175 mutable bool m_willValidateInitialized: 1; |
| 179 mutable bool m_willValidate : 1; | 176 mutable bool m_willValidate : 1; |
| 180 | 177 |
| 181 // Cache of valid(). | 178 // Cache of valid(). |
| 182 // But "candidate for constraint validation" doesn't affect m_isValid. | 179 // But "candidate for constraint validation" doesn't affect m_isValid. |
| 183 bool m_isValid : 1; | 180 bool m_isValid : 1; |
| 184 | 181 |
| 185 bool m_wasChangedSinceLastFormControlChangeEvent : 1; | 182 bool m_wasChangedSinceLastFormControlChangeEvent : 1; |
| 186 bool m_wasFocusedByMouse : 1; | |
| 187 }; | 183 }; |
| 188 | 184 |
| 189 inline bool isHTMLFormControlElement(const Element& element) | 185 inline bool isHTMLFormControlElement(const Element& element) |
| 190 { | 186 { |
| 191 return element.isFormControlElement(); | 187 return element.isFormControlElement(); |
| 192 } | 188 } |
| 193 | 189 |
| 194 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); | 190 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
| 195 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); | 191 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); |
| 196 | 192 |
| 197 } // namespace | 193 } // namespace |
| 198 | 194 |
| 199 #endif | 195 #endif |
| OLD | NEW |