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 26 matching lines...) Expand all Loading... |
37 enum ValidityRecalcReason { ElementAddition, ElementRemoval, ElementModification
}; | 37 enum ValidityRecalcReason { ElementAddition, ElementRemoval, ElementModification
}; |
38 | 38 |
39 // HTMLFormControlElement is the default implementation of FormAssociatedElement
, | 39 // HTMLFormControlElement is the default implementation of FormAssociatedElement
, |
40 // and form-associated element implementations should use HTMLFormControlElement | 40 // and form-associated element implementations should use HTMLFormControlElement |
41 // unless there is a special reason. | 41 // unless there is a special reason. |
42 class HTMLFormControlElement : public LabelableElement, public FormAssociatedEle
ment { | 42 class HTMLFormControlElement : public LabelableElement, public FormAssociatedEle
ment { |
43 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement); | 43 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement); |
44 | 44 |
45 public: | 45 public: |
46 virtual ~HTMLFormControlElement(); | 46 virtual ~HTMLFormControlElement(); |
47 virtual void trace(Visitor*) override; | 47 DECLARE_VIRTUAL_TRACE(); |
48 | 48 |
49 String formEnctype() const; | 49 String formEnctype() const; |
50 void setFormEnctype(const AtomicString&); | 50 void setFormEnctype(const AtomicString&); |
51 String formMethod() const; | 51 String formMethod() const; |
52 void setFormMethod(const AtomicString&); | 52 void setFormMethod(const AtomicString&); |
53 bool formNoValidate() const; | 53 bool formNoValidate() const; |
54 | 54 |
55 void ancestorDisabledStateWasChanged(); | 55 void ancestorDisabledStateWasChanged(); |
56 | 56 |
57 void reset(); | 57 void reset(); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 { | 204 { |
205 return element.isFormControlElement(); | 205 return element.isFormControlElement(); |
206 } | 206 } |
207 | 207 |
208 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); | 208 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
209 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); | 209 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); |
210 | 210 |
211 } // namespace | 211 } // namespace |
212 | 212 |
213 #endif | 213 #endif |
OLD | NEW |