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 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 24 matching lines...) Expand all Loading... |
35 static PassRefPtr<HTMLObjectElement> create(Document&, HTMLFormElement*, boo
l createdByParser); | 35 static PassRefPtr<HTMLObjectElement> create(Document&, HTMLFormElement*, boo
l createdByParser); |
36 virtual ~HTMLObjectElement(); | 36 virtual ~HTMLObjectElement(); |
37 | 37 |
38 const String& classId() const { return m_classId; } | 38 const String& classId() const { return m_classId; } |
39 | 39 |
40 bool containsJavaApplet() const; | 40 bool containsJavaApplet() const; |
41 | 41 |
42 virtual bool useFallbackContent() const OVERRIDE; | 42 virtual bool useFallbackContent() const OVERRIDE; |
43 virtual void renderFallbackContent() OVERRIDE; | 43 virtual void renderFallbackContent() OVERRIDE; |
44 | 44 |
45 // Implementations of FormAssociatedElement | |
46 HTMLFormElement* form() const { return FormAssociatedElement::form(); } | |
47 | |
48 virtual bool isFormControlElement() const { return false; } | 45 virtual bool isFormControlElement() const { return false; } |
49 | 46 |
50 virtual bool isEnumeratable() const { return true; } | 47 virtual bool isEnumeratable() const { return true; } |
51 virtual bool isInteractiveContent() const OVERRIDE; | 48 virtual bool isInteractiveContent() const OVERRIDE; |
| 49 virtual bool isFormAssociatedElement() const OVERRIDE { return true; } |
52 virtual bool appendFormData(FormDataList&, bool); | 50 virtual bool appendFormData(FormDataList&, bool); |
53 | 51 |
54 virtual bool isObjectElement() const OVERRIDE { return true; } | 52 virtual bool isObjectElement() const OVERRIDE { return true; } |
55 | 53 |
56 // Implementations of constraint validation API. | 54 // Implementations of constraint validation API. |
57 // Note that the object elements are always barred from constraint validatio
n. | 55 // Note that the object elements are always barred from constraint validatio
n. |
58 virtual String validationMessage() const OVERRIDE { return String(); } | 56 virtual String validationMessage() const OVERRIDE { return String(); } |
59 bool checkValidity() { return true; } | 57 bool checkValidity() { return true; } |
60 virtual void setCustomValidity(const String&) OVERRIDE { } | 58 virtual void setCustomValidity(const String&) OVERRIDE { } |
61 | 59 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); | 129 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); |
132 // We need to assert after the cast because FormAssociatedElement doesn't | 130 // We need to assert after the cast because FormAssociatedElement doesn't |
133 // have hasTagName. | 131 // have hasTagName. |
134 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); | 132 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); |
135 return objectElement; | 133 return objectElement; |
136 } | 134 } |
137 | 135 |
138 } | 136 } |
139 | 137 |
140 #endif | 138 #endif |
OLD | NEW |