| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "core/html/FormAssociatedElement.h" | 26 #include "core/html/FormAssociatedElement.h" |
| 27 #include "core/html/HTMLPlugInElement.h" | 27 #include "core/html/HTMLPlugInElement.h" |
| 28 | 28 |
| 29 namespace WebCore { | 29 namespace WebCore { |
| 30 | 30 |
| 31 class HTMLFormElement; | 31 class HTMLFormElement; |
| 32 | 32 |
| 33 class HTMLObjectElement FINAL : public HTMLPlugInElement, public FormAssociatedE
lement { | 33 class HTMLObjectElement FINAL : public HTMLPlugInElement, public FormAssociatedE
lement { |
| 34 public: | 34 public: |
| 35 static PassRefPtr<HTMLObjectElement> create(const QualifiedName&, Document&,
HTMLFormElement*, bool 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 { return m_useFallbackContent; } | 42 virtual bool useFallbackContent() const { return m_useFallbackContent; } |
| 43 virtual void renderFallbackContent() OVERRIDE; | 43 virtual void renderFallbackContent() OVERRIDE; |
| 44 | 44 |
| 45 // Implementations of FormAssociatedElement | 45 // Implementations of FormAssociatedElement |
| (...skipping 12 matching lines...) Expand all Loading... |
| 58 virtual String validationMessage() const OVERRIDE { return String(); } | 58 virtual String validationMessage() const OVERRIDE { return String(); } |
| 59 bool checkValidity() { return true; } | 59 bool checkValidity() { return true; } |
| 60 virtual void setCustomValidity(const String&) OVERRIDE { } | 60 virtual void setCustomValidity(const String&) OVERRIDE { } |
| 61 | 61 |
| 62 using Node::ref; | 62 using Node::ref; |
| 63 using Node::deref; | 63 using Node::deref; |
| 64 | 64 |
| 65 virtual bool canContainRangeEndPoint() const { return useFallbackContent();
} | 65 virtual bool canContainRangeEndPoint() const { return useFallbackContent();
} |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 HTMLObjectElement(const QualifiedName&, Document&, HTMLFormElement*, bool cr
eatedByParser); | 68 HTMLObjectElement(Document&, HTMLFormElement*, bool createdByParser); |
| 69 | 69 |
| 70 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 70 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 71 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 71 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 72 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 72 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 73 | 73 |
| 74 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 74 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 75 virtual void removedFrom(ContainerNode*) OVERRIDE; | 75 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 76 | 76 |
| 77 virtual bool rendererIsNeeded(const RenderStyle&); | 77 virtual bool rendererIsNeeded(const RenderStyle&); |
| 78 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 78 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const HTMLObjectElement* objectElement = static_cast<const HTMLObjectElement
*>(element); | 118 const HTMLObjectElement* objectElement = static_cast<const HTMLObjectElement
*>(element); |
| 119 // We need to assert after the cast because FormAssociatedElement doesn't | 119 // We need to assert after the cast because FormAssociatedElement doesn't |
| 120 // have hasTagName. | 120 // have hasTagName. |
| 121 ASSERT_WITH_SECURITY_IMPLICATION(!objectElement || objectElement->hasTagName
(HTMLNames::objectTag)); | 121 ASSERT_WITH_SECURITY_IMPLICATION(!objectElement || objectElement->hasTagName
(HTMLNames::objectTag)); |
| 122 return objectElement; | 122 return objectElement; |
| 123 } | 123 } |
| 124 | 124 |
| 125 } | 125 } |
| 126 | 126 |
| 127 #endif | 127 #endif |
| OLD | NEW |