| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 protected: | 87 protected: |
| 88 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); | 88 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); |
| 89 void setSandboxFlags(SandboxFlags); | 89 void setSandboxFlags(SandboxFlags); |
| 90 | 90 |
| 91 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
replaceCurrentItem); | 91 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
replaceCurrentItem); |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 bool isKeyboardFocusable() const override; | 94 bool isKeyboardFocusable() const override; |
| 95 bool isFrameOwnerElement() const final { return true; } | 95 bool isFrameOwnerElement() const final { return true; } |
| 96 | 96 |
| 97 // Returns true if the element has a referrerpolicy attribute. If true, sets
|policy| to the policy specified by the attribute value. |
| 98 virtual bool referrerPolicyAttribute(ReferrerPolicy* policy) { return false;
} |
| 99 |
| 97 RawPtrWillBeMember<Frame> m_contentFrame; | 100 RawPtrWillBeMember<Frame> m_contentFrame; |
| 98 RefPtrWillBeMember<Widget> m_widget; | 101 RefPtrWillBeMember<Widget> m_widget; |
| 99 SandboxFlags m_sandboxFlags; | 102 SandboxFlags m_sandboxFlags; |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); | 105 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); |
| 103 | 106 |
| 104 class SubframeLoadingDisabler { | 107 class SubframeLoadingDisabler { |
| 105 STACK_ALLOCATED(); | 108 STACK_ALLOCATED(); |
| 106 public: | 109 public: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 130 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo
ots(); | 133 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node>>& disabledSubtreeRo
ots(); |
| 131 | 134 |
| 132 RawPtrWillBeMember<Node> m_root; | 135 RawPtrWillBeMember<Node> m_root; |
| 133 }; | 136 }; |
| 134 | 137 |
| 135 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); | 138 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); |
| 136 | 139 |
| 137 } // namespace blink | 140 } // namespace blink |
| 138 | 141 |
| 139 #endif // HTMLFrameOwnerElement_h | 142 #endif // HTMLFrameOwnerElement_h |
| OLD | NEW |