| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual bool appendFormData(FormDataList&, bool) OVERRIDE; | 55 virtual bool appendFormData(FormDataList&, bool) OVERRIDE; |
| 56 | 56 |
| 57 virtual bool isObjectElement() const OVERRIDE { return true; } | 57 virtual bool isObjectElement() const OVERRIDE { return true; } |
| 58 | 58 |
| 59 // Implementations of constraint validation API. | 59 // Implementations of constraint validation API. |
| 60 // Note that the object elements are always barred from constraint validatio
n. | 60 // Note that the object elements are always barred from constraint validatio
n. |
| 61 virtual String validationMessage() const OVERRIDE { return String(); } | 61 virtual String validationMessage() const OVERRIDE { return String(); } |
| 62 bool checkValidity() { return true; } | 62 bool checkValidity() { return true; } |
| 63 virtual void setCustomValidity(const String&) OVERRIDE { } | 63 virtual void setCustomValidity(const String&) OVERRIDE { } |
| 64 | 64 |
| 65 #if !ENABLE(OILPAN) |
| 65 using Node::ref; | 66 using Node::ref; |
| 66 using Node::deref; | 67 using Node::deref; |
| 68 #endif |
| 67 | 69 |
| 68 virtual bool canContainRangeEndPoint() const OVERRIDE { return useFallbackCo
ntent(); } | 70 virtual bool canContainRangeEndPoint() const OVERRIDE { return useFallbackCo
ntent(); } |
| 69 | 71 |
| 70 bool isExposed() const; | 72 bool isExposed() const; |
| 71 | 73 |
| 72 private: | 74 private: |
| 73 HTMLObjectElement(Document&, HTMLFormElement*, bool createdByParser); | 75 HTMLObjectElement(Document&, HTMLFormElement*, bool createdByParser); |
| 74 | 76 |
| 75 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 76 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 78 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); | 141 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); |
| 140 // We need to assert after the cast because FormAssociatedElement doesn't | 142 // We need to assert after the cast because FormAssociatedElement doesn't |
| 141 // have hasTagName. | 143 // have hasTagName. |
| 142 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); | 144 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); |
| 143 return objectElement; | 145 return objectElement; |
| 144 } | 146 } |
| 145 | 147 |
| 146 } | 148 } |
| 147 | 149 |
| 148 #endif | 150 #endif |
| OLD | NEW |