| 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 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class CORE_EXPORT HTMLIFrameElement final | 37 class CORE_EXPORT HTMLIFrameElement final |
| 38 : public HTMLFrameElementBase, | 38 : public HTMLFrameElementBase, |
| 39 public Supplementable<HTMLIFrameElement> { | 39 public Supplementable<HTMLIFrameElement> { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement); | 41 USING_GARBAGE_COLLECTED_MIXIN(HTMLIFrameElement); |
| 42 | 42 |
| 43 public: | 43 public: |
| 44 DECLARE_NODE_FACTORY(HTMLIFrameElement); | |
| 45 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
| 45 |
| 46 static HTMLIFrameElement* create(Document&, bool createdByFragmentParser); |
| 46 ~HTMLIFrameElement() override; | 47 ~HTMLIFrameElement() override; |
| 47 DOMTokenList* sandbox() const; | 48 DOMTokenList* sandbox() const; |
| 48 DOMTokenList* permissions() const; | 49 DOMTokenList* permissions() const; |
| 50 bool createdByFragmentParser() const { return m_createdByFragmentParser; } |
| 49 | 51 |
| 50 void sandboxValueWasSet(); | 52 void sandboxValueWasSet(); |
| 51 void permissionsValueWasSet(); | 53 void permissionsValueWasSet(); |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 explicit HTMLIFrameElement(Document&); | 56 HTMLIFrameElement(Document&, bool createdByFragmentParser); |
| 55 | 57 |
| 56 void parseAttribute(const AttributeModificationParams&) override; | 58 void parseAttribute(const AttributeModificationParams&) override; |
| 57 bool isPresentationAttribute(const QualifiedName&) const override; | 59 bool isPresentationAttribute(const QualifiedName&) const override; |
| 58 void collectStyleForPresentationAttribute(const QualifiedName&, | 60 void collectStyleForPresentationAttribute(const QualifiedName&, |
| 59 const AtomicString&, | 61 const AtomicString&, |
| 60 MutableStylePropertySet*) override; | 62 MutableStylePropertySet*) override; |
| 61 | 63 |
| 62 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 64 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 63 void removedFrom(ContainerNode*) override; | 65 void removedFrom(ContainerNode*) override; |
| 64 | 66 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 81 return m_delegatedPermissions; | 83 return m_delegatedPermissions; |
| 82 } | 84 } |
| 83 | 85 |
| 84 bool initializePermissionsAttribute(); | 86 bool initializePermissionsAttribute(); |
| 85 | 87 |
| 86 AtomicString m_name; | 88 AtomicString m_name; |
| 87 AtomicString m_csp; | 89 AtomicString m_csp; |
| 88 bool m_didLoadNonEmptyDocument; | 90 bool m_didLoadNonEmptyDocument; |
| 89 bool m_allowFullscreen; | 91 bool m_allowFullscreen; |
| 90 bool m_allowPaymentRequest; | 92 bool m_allowPaymentRequest; |
| 93 const bool m_createdByFragmentParser; |
| 91 Member<HTMLIFrameElementSandbox> m_sandbox; | 94 Member<HTMLIFrameElementSandbox> m_sandbox; |
| 92 Member<HTMLIFrameElementPermissions> m_permissions; | 95 Member<HTMLIFrameElementPermissions> m_permissions; |
| 93 | 96 |
| 94 WebVector<WebPermissionType> m_delegatedPermissions; | 97 WebVector<WebPermissionType> m_delegatedPermissions; |
| 95 | 98 |
| 96 ReferrerPolicy m_referrerPolicy; | 99 ReferrerPolicy m_referrerPolicy; |
| 97 }; | 100 }; |
| 98 | 101 |
| 99 } // namespace blink | 102 } // namespace blink |
| 100 | 103 |
| 101 #endif // HTMLIFrameElement_h | 104 #endif // HTMLIFrameElement_h |
| OLD | NEW |