| 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 28 matching lines...) Expand all  Loading... | 
| 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 public: | 43 public: | 
| 44     virtual ~HTMLFormControlElement(); | 44     virtual ~HTMLFormControlElement(); | 
| 45 | 45 | 
| 46     HTMLFormElement* form() const { return FormAssociatedElement::form(); } | 46     HTMLFormElement* form() const { return FormAssociatedElement::form(); } | 
| 47 | 47 | 
| 48     String formEnctype() const; | 48     String formEnctype() const; | 
| 49     void setFormEnctype(const String&); | 49     void setFormEnctype(const AtomicString&); | 
| 50     String formMethod() const; | 50     String formMethod() const; | 
| 51     void setFormMethod(const String&); | 51     void setFormMethod(const AtomicString&); | 
| 52     bool formNoValidate() const; | 52     bool formNoValidate() const; | 
| 53 | 53 | 
| 54     void ancestorDisabledStateWasChanged(); | 54     void ancestorDisabledStateWasChanged(); | 
| 55 | 55 | 
| 56     void reset(); | 56     void reset(); | 
| 57 | 57 | 
| 58     virtual bool formControlValueMatchesRenderer() const { return m_valueMatches
     Renderer; } | 58     virtual bool formControlValueMatchesRenderer() const { return m_valueMatches
     Renderer; } | 
| 59     virtual void setFormControlValueMatchesRenderer(bool b) { m_valueMatchesRend
     erer = b; } | 59     virtual void setFormControlValueMatchesRenderer(bool b) { m_valueMatchesRend
     erer = b; } | 
| 60 | 60 | 
| 61     virtual bool wasChangedSinceLastFormControlChangeEvent() const; | 61     virtual bool wasChangedSinceLastFormControlChangeEvent() const; | 
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 208 | 208 | 
| 209 inline const HTMLFormControlElement& toHTMLFormControlElement(const FormAssociat
     edElement& control) | 209 inline const HTMLFormControlElement& toHTMLFormControlElement(const FormAssociat
     edElement& control) | 
| 210 { | 210 { | 
| 211     ASSERT_WITH_SECURITY_IMPLICATION(control.isFormControlElement()); | 211     ASSERT_WITH_SECURITY_IMPLICATION(control.isFormControlElement()); | 
| 212     return static_cast<const HTMLFormControlElement&>(control); | 212     return static_cast<const HTMLFormControlElement&>(control); | 
| 213 } | 213 } | 
| 214 | 214 | 
| 215 } // namespace | 215 } // namespace | 
| 216 | 216 | 
| 217 #endif | 217 #endif | 
| OLD | NEW | 
|---|