| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 virtual bool canBeSuccessfulSubmitButton() const { return false; } | 84 virtual bool canBeSuccessfulSubmitButton() const { return false; } |
| 85 bool isSuccessfulSubmitButton() const; | 85 bool isSuccessfulSubmitButton() const; |
| 86 virtual bool isActivatedSubmit() const { return false; } | 86 virtual bool isActivatedSubmit() const { return false; } |
| 87 virtual void setActivatedSubmit(bool) { } | 87 virtual void setActivatedSubmit(bool) { } |
| 88 | 88 |
| 89 virtual bool willValidate() const override; | 89 virtual bool willValidate() const override; |
| 90 | 90 |
| 91 void updateVisibleValidationMessage(); | 91 void updateVisibleValidationMessage(); |
| 92 void hideVisibleValidationMessage(); | 92 void hideVisibleValidationMessage(); |
| 93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement
> >* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDis
patchInvalidEvent); | 93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<HTMLFormControlElemen
t> >* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDi
spatchInvalidEvent); |
| 94 bool reportValidity(); |
| 95 bool showValidationMessage(); |
| 94 // This must be called when a validation constraint or control value is chan
ged. | 96 // This must be called when a validation constraint or control value is chan
ged. |
| 95 void setNeedsValidityCheck(); | 97 void setNeedsValidityCheck(); |
| 96 virtual void setCustomValidity(const String&) override final; | 98 virtual void setCustomValidity(const String&) override final; |
| 97 void findCustomValidationMessageTextDirection(const String& message, TextDir
ection &messageDir, String& subMessage, TextDirection& subMessageDir); | 99 void findCustomValidationMessageTextDirection(const String& message, TextDir
ection &messageDir, String& subMessage, TextDirection& subMessageDir); |
| 98 | 100 |
| 99 bool isReadOnly() const { return m_isReadOnly; } | 101 bool isReadOnly() const { return m_isReadOnly; } |
| 100 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe
adOnly; } | 102 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe
adOnly; } |
| 101 | 103 |
| 102 bool isAutofocusable() const; | 104 bool isAutofocusable() const; |
| 103 | 105 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 { | 198 { |
| 197 return element.isFormControlElement(); | 199 return element.isFormControlElement(); |
| 198 } | 200 } |
| 199 | 201 |
| 200 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); | 202 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
| 201 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); | 203 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); |
| 202 | 204 |
| 203 } // namespace | 205 } // namespace |
| 204 | 206 |
| 205 #endif | 207 #endif |
| OLD | NEW |