| 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 15 matching lines...) Expand all Loading... |
| 26 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
| 27 #include "core/html/FormAssociatedElement.h" | 27 #include "core/html/FormAssociatedElement.h" |
| 28 #include "core/html/HTMLPlugInElement.h" | 28 #include "core/html/HTMLPlugInElement.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class HTMLFormElement; | 32 class HTMLFormElement; |
| 33 | 33 |
| 34 class CORE_EXPORT HTMLObjectElement final : public HTMLPlugInElement, public For
mAssociatedElement { | 34 class CORE_EXPORT HTMLObjectElement final : public HTMLPlugInElement, public For
mAssociatedElement { |
| 35 DEFINE_WRAPPERTYPEINFO(); | 35 DEFINE_WRAPPERTYPEINFO(); |
| 36 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLObjectElement); | 36 USING_GARBAGE_COLLECTED_MIXIN(HTMLObjectElement); |
| 37 public: | 37 public: |
| 38 static PassRefPtrWillBeRawPtr<HTMLObjectElement> create(Document&, HTMLFormE
lement*, bool createdByParser); | 38 static RawPtr<HTMLObjectElement> create(Document&, HTMLFormElement*, bool cr
eatedByParser); |
| 39 ~HTMLObjectElement() override; | 39 ~HTMLObjectElement() override; |
| 40 DECLARE_VIRTUAL_TRACE(); | 40 DECLARE_VIRTUAL_TRACE(); |
| 41 | 41 |
| 42 const String& classId() const { return m_classId; } | 42 const String& classId() const { return m_classId; } |
| 43 | 43 |
| 44 HTMLFormElement* formOwner() const override; | 44 HTMLFormElement* formOwner() const override; |
| 45 | 45 |
| 46 bool containsJavaApplet() const; | 46 bool containsJavaApplet() const; |
| 47 | 47 |
| 48 bool hasFallbackContent() const override; | 48 bool hasFallbackContent() const override; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); | 141 const HTMLObjectElement& objectElement = static_cast<const HTMLObjectElement
&>(element); |
| 142 // We need to assert after the cast because FormAssociatedElement doesn't | 142 // We need to assert after the cast because FormAssociatedElement doesn't |
| 143 // have hasTagName. | 143 // have hasTagName. |
| 144 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); | 144 ASSERT_WITH_SECURITY_IMPLICATION(objectElement.hasTagName(HTMLNames::objectT
ag)); |
| 145 return objectElement; | 145 return objectElement; |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace blink | 148 } // namespace blink |
| 149 | 149 |
| 150 #endif // HTMLObjectElement_h | 150 #endif // HTMLObjectElement_h |
| OLD | NEW |