| 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 22 matching lines...) Expand all Loading... |
| 33 class CORE_EXPORT HTMLFrameElementBase : public HTMLFrameOwnerElement { | 33 class CORE_EXPORT HTMLFrameElementBase : public HTMLFrameOwnerElement { |
| 34 public: | 34 public: |
| 35 bool CanContainRangeEndPoint() const final { return false; } | 35 bool CanContainRangeEndPoint() const final { return false; } |
| 36 | 36 |
| 37 // FrameOwner overrides: | 37 // FrameOwner overrides: |
| 38 ScrollbarMode ScrollingMode() const final { return scrolling_mode_; } | 38 ScrollbarMode ScrollingMode() const final { return scrolling_mode_; } |
| 39 int MarginWidth() const final { return margin_width_; } | 39 int MarginWidth() const final { return margin_width_; } |
| 40 int MarginHeight() const final { return margin_height_; } | 40 int MarginHeight() const final { return margin_height_; } |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 friend class HTMLIFrameElementTest; |
| 44 |
| 43 HTMLFrameElementBase(const QualifiedName&, Document&); | 45 HTMLFrameElementBase(const QualifiedName&, Document&); |
| 44 | 46 |
| 45 void ParseAttribute(const AttributeModificationParams&) override; | 47 void ParseAttribute(const AttributeModificationParams&) override; |
| 48 |
| 46 InsertionNotificationRequest InsertedInto(ContainerNode*) override; | 49 InsertionNotificationRequest InsertedInto(ContainerNode*) override; |
| 47 void DidNotifySubtreeInsertionsToDocument() final; | 50 void DidNotifySubtreeInsertionsToDocument() final; |
| 48 void AttachLayoutTree(const AttachContext& = AttachContext()) override; | 51 void AttachLayoutTree(const AttachContext& = AttachContext()) override; |
| 49 | 52 |
| 50 void SetScrollingMode(ScrollbarMode); | 53 void SetScrollingMode(ScrollbarMode); |
| 51 void SetMarginWidth(int); | 54 void SetMarginWidth(int); |
| 52 void SetMarginHeight(int); | 55 void SetMarginHeight(int); |
| 53 | 56 |
| 57 // Return the origin which is to be used for feature policy container |
| 58 // policies, when the "allow" attribute is used. When that attribute is used, |
| 59 // the feature policy which is constructed should only allow a given feature |
| 60 // on the origin which is specified by the frame's "src" attribute. |
| 61 // It also takes into account details such as the frame's sandbox status, and |
| 62 // whether the frame should inherit its parent's origin. |
| 63 RefPtr<SecurityOrigin> GetOriginForFeaturePolicy() const override; |
| 64 |
| 54 private: | 65 private: |
| 55 bool SupportsFocus() const final; | 66 bool SupportsFocus() const final; |
| 56 void SetFocused(bool, WebFocusType) final; | 67 void SetFocused(bool, WebFocusType) final; |
| 57 | 68 |
| 58 bool IsURLAttribute(const Attribute&) const final; | 69 bool IsURLAttribute(const Attribute&) const final; |
| 59 bool HasLegalLinkAttribute(const QualifiedName&) const final; | 70 bool HasLegalLinkAttribute(const QualifiedName&) const final; |
| 60 bool IsHTMLContentAttribute(const Attribute&) const final; | 71 bool IsHTMLContentAttribute(const Attribute&) const final; |
| 61 | 72 |
| 62 bool AreAuthorShadowsAllowed() const final { return false; } | 73 bool AreAuthorShadowsAllowed() const final { return false; } |
| 63 | 74 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 76 | 87 |
| 77 inline bool IsHTMLFrameElementBase(const HTMLElement& element) { | 88 inline bool IsHTMLFrameElementBase(const HTMLElement& element) { |
| 78 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); | 89 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); |
| 79 } | 90 } |
| 80 | 91 |
| 81 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); | 92 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); |
| 82 | 93 |
| 83 } // namespace blink | 94 } // namespace blink |
| 84 | 95 |
| 85 #endif // HTMLFrameElementBase_h | 96 #endif // HTMLFrameElementBase_h |
| OLD | NEW |