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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 #if !ENABLE(OILPAN) | 159 #if !ENABLE(OILPAN) |
160 void refFormAssociatedElement() final { ref(); } | 160 void refFormAssociatedElement() final { ref(); } |
161 void derefFormAssociatedElement() final { deref(); } | 161 void derefFormAssociatedElement() final { deref(); } |
162 #endif | 162 #endif |
163 | 163 |
164 bool isFormControlElement() const final { return true; } | 164 bool isFormControlElement() const final { return true; } |
165 bool alwaysCreateUserAgentShadowRoot() const override { return true; } | 165 bool alwaysCreateUserAgentShadowRoot() const override { return true; } |
166 | 166 |
167 short tabIndex() const final; | 167 short tabIndex() const final; |
168 | 168 |
169 bool isDefaultButtonForForm() const final; | |
170 bool isValidElement() override; | 169 bool isValidElement() override; |
171 bool matchesValidityPseudoClasses() const override; | 170 bool matchesValidityPseudoClasses() const override; |
172 void updateAncestorDisabledState() const; | 171 void updateAncestorDisabledState() const; |
173 | 172 |
174 bool isValidationMessageVisible() const; | 173 bool isValidationMessageVisible() const; |
175 ValidationMessageClient* validationMessageClient() const; | 174 ValidationMessageClient* validationMessageClient() const; |
176 | 175 |
177 // Requests validity recalc for the form owner, if one exists. | 176 // Requests validity recalc for the form owner, if one exists. |
178 void formOwnerSetNeedsValidityCheck(); | 177 void formOwnerSetNeedsValidityCheck(); |
179 // Requests validity recalc for all ancestor fieldsets, if exist. | 178 // Requests validity recalc for all ancestor fieldsets, if exist. |
(...skipping 24 matching lines...) Expand all Loading... |
204 { | 203 { |
205 return element.isFormControlElement(); | 204 return element.isFormControlElement(); |
206 } | 205 } |
207 | 206 |
208 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); | 207 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
209 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); | 208 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); |
210 | 209 |
211 } // namespace blink | 210 } // namespace blink |
212 | 211 |
213 #endif | 212 #endif |
OLD | NEW |