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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void setContentFrame(Frame&) override; | 79 void setContentFrame(Frame&) override; |
80 void clearContentFrame() override; | 80 void clearContentFrame() override; |
81 void dispatchLoad() override; | 81 void dispatchLoad() override; |
82 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; } | 82 SandboxFlags getSandboxFlags() const override { return m_sandboxFlags; } |
83 bool canRenderFallbackContent() const override { return false; } | 83 bool canRenderFallbackContent() const override { return false; } |
84 void renderFallbackContent() override {} | 84 void renderFallbackContent() override {} |
85 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; } | 85 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; } |
86 int marginWidth() const override { return -1; } | 86 int marginWidth() const override { return -1; } |
87 int marginHeight() const override { return -1; } | 87 int marginHeight() const override { return -1; } |
88 bool allowFullscreen() const override { return false; } | 88 bool allowFullscreen() const override { return false; } |
| 89 bool isDisplayNone() const override { return !layoutObject(); } |
89 AtomicString csp() const override { return nullAtom; } | 90 AtomicString csp() const override { return nullAtom; } |
90 const WebVector<WebPermissionType>& delegatedPermissions() const override; | 91 const WebVector<WebPermissionType>& delegatedPermissions() const override; |
91 | 92 |
| 93 // Element overrides: |
| 94 void setLayoutObject(LayoutObject*) override; |
| 95 |
92 DECLARE_VIRTUAL_TRACE(); | 96 DECLARE_VIRTUAL_TRACE(); |
93 | 97 |
94 protected: | 98 protected: |
95 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); | 99 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); |
96 void setSandboxFlags(SandboxFlags); | 100 void setSandboxFlags(SandboxFlags); |
97 | 101 |
98 bool loadOrRedirectSubframe(const KURL&, | 102 bool loadOrRedirectSubframe(const KURL&, |
99 const AtomicString& frameName, | 103 const AtomicString& frameName, |
100 bool replaceCurrentItem); | 104 bool replaceCurrentItem); |
101 bool isKeyboardFocusable() const override; | 105 bool isKeyboardFocusable() const override; |
102 | 106 |
103 void disposeWidgetSoon(Widget*); | 107 void disposeWidgetSoon(Widget*); |
| 108 void frameOwnerPropertiesChanged(); |
104 | 109 |
105 private: | 110 private: |
106 // Intentionally private to prevent redundant checks when the type is | 111 // Intentionally private to prevent redundant checks when the type is |
107 // already HTMLFrameOwnerElement. | 112 // already HTMLFrameOwnerElement. |
108 bool isLocal() const override { return true; } | 113 bool isLocal() const override { return true; } |
109 bool isRemote() const override { return false; } | 114 bool isRemote() const override { return false; } |
110 | 115 |
111 bool isFrameOwnerElement() const final { return true; } | 116 bool isFrameOwnerElement() const final { return true; } |
112 | 117 |
113 virtual ReferrerPolicy referrerPolicyAttribute() { | 118 virtual ReferrerPolicy referrerPolicyAttribute() { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 161 |
157 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, | 162 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, |
158 FrameOwner, | 163 FrameOwner, |
159 owner, | 164 owner, |
160 owner->isLocal(), | 165 owner->isLocal(), |
161 owner.isLocal()); | 166 owner.isLocal()); |
162 | 167 |
163 } // namespace blink | 168 } // namespace blink |
164 | 169 |
165 #endif // HTMLFrameOwnerElement_h | 170 #endif // HTMLFrameOwnerElement_h |
OLD | NEW |