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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // FrameOwner overrides: | 36 // FrameOwner overrides: |
37 ScrollbarMode ScrollingMode() const final { return scrolling_mode_; } | 37 ScrollbarMode ScrollingMode() const final { return scrolling_mode_; } |
38 int MarginWidth() const final { return margin_width_; } | 38 int MarginWidth() const final { return margin_width_; } |
39 int MarginHeight() const final { return margin_height_; } | 39 int MarginHeight() const final { return margin_height_; } |
40 | 40 |
41 protected: | 41 protected: |
42 HTMLFrameElementBase(const QualifiedName&, Document&); | 42 HTMLFrameElementBase(const QualifiedName&, Document&); |
43 | 43 |
44 void ParseAttribute(const AttributeModificationParams&) override; | 44 void ParseAttribute(const AttributeModificationParams&) override; |
| 45 |
| 46 // Return the origin which is to be used for feature policy container |
| 47 // policies, when a specific origin is needed. This supports the "allow" |
| 48 // attribute, which uses the "src" attribute to determine the origin when the |
| 49 // frame is constructed. It also takes into account the frame's sandbox |
| 50 // status, and whether the frame should inherit its parent's origin. |
| 51 const RefPtr<SecurityOrigin> GetOriginForFeaturePolicy() const override; |
| 52 |
45 InsertionNotificationRequest InsertedInto(ContainerNode*) override; | 53 InsertionNotificationRequest InsertedInto(ContainerNode*) override; |
46 void DidNotifySubtreeInsertionsToDocument() final; | 54 void DidNotifySubtreeInsertionsToDocument() final; |
47 void AttachLayoutTree(const AttachContext& = AttachContext()) override; | 55 void AttachLayoutTree(const AttachContext& = AttachContext()) override; |
48 | 56 |
49 void SetScrollingMode(ScrollbarMode); | 57 void SetScrollingMode(ScrollbarMode); |
50 void SetMarginWidth(int); | 58 void SetMarginWidth(int); |
51 void SetMarginHeight(int); | 59 void SetMarginHeight(int); |
52 | 60 |
53 private: | 61 private: |
54 bool SupportsFocus() const final; | 62 bool SupportsFocus() const final; |
(...skipping 20 matching lines...) Expand all Loading... |
75 | 83 |
76 inline bool IsHTMLFrameElementBase(const HTMLElement& element) { | 84 inline bool IsHTMLFrameElementBase(const HTMLElement& element) { |
77 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); | 85 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); |
78 } | 86 } |
79 | 87 |
80 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); | 88 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); |
81 | 89 |
82 } // namespace blink | 90 } // namespace blink |
83 | 91 |
84 #endif // HTMLFrameElementBase_h | 92 #endif // HTMLFrameElementBase_h |
OLD | NEW |