| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 public: | 43 public: |
| 44 virtual ~FormAssociatedElement(); | 44 virtual ~FormAssociatedElement(); |
| 45 | 45 |
| 46 static HTMLFormElement* findAssociatedForm(const HTMLElement*); | 46 static HTMLFormElement* findAssociatedForm(const HTMLElement*); |
| 47 HTMLFormElement* form() const { return m_form.get(); } | 47 HTMLFormElement* form() const { return m_form.get(); } |
| 48 ValidityState* validity(); | 48 ValidityState* validity(); |
| 49 | 49 |
| 50 virtual bool isFormControlElement() const = 0; | 50 virtual bool isFormControlElement() const = 0; |
| 51 virtual bool isFormControlElementWithState() const; | 51 virtual bool isFormControlElementWithState() const; |
| 52 virtual bool isEnumeratable() const = 0; | 52 virtual bool isEnumeratable() const = 0; |
| 53 virtual bool isLabelElement() const { return false; } | |
| 54 | 53 |
| 55 // Returns the 'name' attribute value. If this element has no name | 54 // Returns the 'name' attribute value. If this element has no name |
| 56 // attribute, it returns an empty string instead of null string. | 55 // attribute, it returns an empty string instead of null string. |
| 57 // Note that the 'name' IDL attribute doesn't use this function. | 56 // Note that the 'name' IDL attribute doesn't use this function. |
| 58 virtual const AtomicString& name() const; | 57 virtual const AtomicString& name() const; |
| 59 | 58 |
| 60 // Override in derived classes to get the encoded name=value pair for | 59 // Override in derived classes to get the encoded name=value pair for |
| 61 // submitting. | 60 // submitting. |
| 62 virtual void appendToFormData(FormData&) { } | 61 virtual void appendToFormData(FormData&) { } |
| 63 | 62 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 }; | 123 }; |
| 125 | 124 |
| 126 CORE_EXPORT HTMLElement* toHTMLElement(FormAssociatedElement*); | 125 CORE_EXPORT HTMLElement* toHTMLElement(FormAssociatedElement*); |
| 127 CORE_EXPORT HTMLElement& toHTMLElement(FormAssociatedElement&); | 126 CORE_EXPORT HTMLElement& toHTMLElement(FormAssociatedElement&); |
| 128 CORE_EXPORT const HTMLElement* toHTMLElement(const FormAssociatedElement*); | 127 CORE_EXPORT const HTMLElement* toHTMLElement(const FormAssociatedElement*); |
| 129 CORE_EXPORT const HTMLElement& toHTMLElement(const FormAssociatedElement&); | 128 CORE_EXPORT const HTMLElement& toHTMLElement(const FormAssociatedElement&); |
| 130 | 129 |
| 131 } // namespace blink | 130 } // namespace blink |
| 132 | 131 |
| 133 #endif // FormAssociatedElement_h | 132 #endif // FormAssociatedElement_h |
| OLD | NEW |