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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual bool isActivatedSubmit() const { return false; } | 87 virtual bool isActivatedSubmit() const { return false; } |
88 virtual void setActivatedSubmit(bool) { } | 88 virtual void setActivatedSubmit(bool) { } |
89 | 89 |
90 virtual bool willValidate() const OVERRIDE; | 90 virtual bool willValidate() const OVERRIDE; |
91 void updateVisibleValidationMessage(); | 91 void updateVisibleValidationMessage(); |
92 void hideVisibleValidationMessage(); | 92 void hideVisibleValidationMessage(); |
93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement
> >* unhandledInvalidControls = 0); | 93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement
> >* unhandledInvalidControls = 0); |
94 // This must be called when a validation constraint or control value is chan
ged. | 94 // This must be called when a validation constraint or control value is chan
ged. |
95 void setNeedsValidityCheck(); | 95 void setNeedsValidityCheck(); |
96 virtual void setCustomValidity(const String&) OVERRIDE FINAL; | 96 virtual void setCustomValidity(const String&) OVERRIDE FINAL; |
| 97 void findCustomValidationMessageTextDirection(const String& message, TextDir
ection &messageDir, String& subMessage, TextDirection& subMessageDir); |
97 | 98 |
98 bool isReadOnly() const { return m_isReadOnly; } | 99 bool isReadOnly() const { return m_isReadOnly; } |
99 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe
adOnly; } | 100 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe
adOnly; } |
100 | 101 |
101 bool isAutofocusable() const; | 102 bool isAutofocusable() const; |
102 | 103 |
103 bool isAutofilled() const { return m_isAutofilled; } | 104 bool isAutofilled() const { return m_isAutofilled; } |
104 void setAutofilled(bool = true); | 105 void setAutofilled(bool = true); |
105 | 106 |
106 static HTMLFormControlElement* enclosingFormControlElement(Node*); | 107 static HTMLFormControlElement* enclosingFormControlElement(Node*); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 { | 190 { |
190 return element.isFormControlElement(); | 191 return element.isFormControlElement(); |
191 } | 192 } |
192 | 193 |
193 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); | 194 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
194 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); | 195 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); |
195 | 196 |
196 } // namespace | 197 } // namespace |
197 | 198 |
198 #endif | 199 #endif |
OLD | NEW |