| 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/HTMLPlugInImageElement.h" | 27 #include "core/html/HTMLPlugInImageElement.h" |
| 28 | 28 |
| 29 namespace WebCore { | 29 namespace WebCore { |
| 30 | 30 |
| 31 class HTMLFormElement; | 31 class HTMLFormElement; |
| 32 | 32 |
| 33 class HTMLObjectElement FINAL : public HTMLPlugInImageElement, public FormAssoci
atedElement { | 33 class HTMLObjectElement FINAL : public HTMLPlugInImageElement, public FormAssoci
atedElement { |
| 34 public: | 34 public: |
| 35 static PassRefPtr<HTMLObjectElement> create(const QualifiedName&, Document*,
HTMLFormElement*, bool createdByParser); | 35 static PassRefPtr<HTMLObjectElement> create(const QualifiedName&, Document&,
HTMLFormElement*, bool createdByParser); |
| 36 virtual ~HTMLObjectElement(); | 36 virtual ~HTMLObjectElement(); |
| 37 | 37 |
| 38 bool isDocNamedItem() const { return m_docNamedItem; } | 38 bool isDocNamedItem() const { return m_docNamedItem; } |
| 39 | 39 |
| 40 const String& classId() const { return m_classId; } | 40 const String& classId() const { return m_classId; } |
| 41 | 41 |
| 42 bool containsJavaApplet() const; | 42 bool containsJavaApplet() const; |
| 43 | 43 |
| 44 virtual bool useFallbackContent() const { return m_useFallbackContent; } | 44 virtual bool useFallbackContent() const { return m_useFallbackContent; } |
| 45 void renderFallbackContent(); | 45 void renderFallbackContent(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 57 virtual String validationMessage() const OVERRIDE { return String(); } | 57 virtual String validationMessage() const OVERRIDE { return String(); } |
| 58 bool checkValidity() { return true; } | 58 bool checkValidity() { return true; } |
| 59 virtual void setCustomValidity(const String&) OVERRIDE { } | 59 virtual void setCustomValidity(const String&) OVERRIDE { } |
| 60 | 60 |
| 61 using Node::ref; | 61 using Node::ref; |
| 62 using Node::deref; | 62 using Node::deref; |
| 63 | 63 |
| 64 virtual bool canContainRangeEndPoint() const { return useFallbackContent();
} | 64 virtual bool canContainRangeEndPoint() const { return useFallbackContent();
} |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 HTMLObjectElement(const QualifiedName&, Document*, HTMLFormElement*, bool cr
eatedByParser); | 67 HTMLObjectElement(const QualifiedName&, Document&, HTMLFormElement*, bool cr
eatedByParser); |
| 68 | 68 |
| 69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 70 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 70 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 71 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 71 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 72 | 72 |
| 73 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 73 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 74 virtual void removedFrom(ContainerNode*) OVERRIDE; | 74 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 75 | 75 |
| 76 virtual bool rendererIsNeeded(const NodeRenderingContext&); | 76 virtual bool rendererIsNeeded(const NodeRenderingContext&); |
| 77 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; | 77 virtual void didMoveToNewDocument(Document* oldDocument) OVERRIDE; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 inline HTMLObjectElement* toHTMLObjectElement(Node* node) | 114 inline HTMLObjectElement* toHTMLObjectElement(Node* node) |
| 115 { | 115 { |
| 116 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::object
Tag)); | 116 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::object
Tag)); |
| 117 return static_cast<HTMLObjectElement*>(node); | 117 return static_cast<HTMLObjectElement*>(node); |
| 118 } | 118 } |
| 119 | 119 |
| 120 } | 120 } |
| 121 | 121 |
| 122 #endif | 122 #endif |
| OLD | NEW |