| 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 13 matching lines...) Expand all Loading... |
| 24 #ifndef HTMLFrameElementBase_h | 24 #ifndef HTMLFrameElementBase_h |
| 25 #define HTMLFrameElementBase_h | 25 #define HTMLFrameElementBase_h |
| 26 | 26 |
| 27 #include "core/html/HTMLFrameOwnerElement.h" | 27 #include "core/html/HTMLFrameOwnerElement.h" |
| 28 #include "platform/scroll/ScrollTypes.h" | 28 #include "platform/scroll/ScrollTypes.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class HTMLFrameElementBase : public HTMLFrameOwnerElement { | 32 class HTMLFrameElementBase : public HTMLFrameOwnerElement { |
| 33 public: | 33 public: |
| 34 ScrollbarMode scrollingMode() const final { return m_scrolling; } | |
| 35 | |
| 36 int marginWidth() const { return m_marginWidth; } | |
| 37 int marginHeight() const { return m_marginHeight; } | |
| 38 | |
| 39 bool canContainRangeEndPoint() const final { return false; } | 34 bool canContainRangeEndPoint() const final { return false; } |
| 40 | 35 |
| 41 protected: | 36 protected: |
| 42 HTMLFrameElementBase(const QualifiedName&, Document&); | 37 HTMLFrameElementBase(const QualifiedName&, Document&); |
| 43 | 38 |
| 44 bool isURLAllowed() const; | 39 bool isURLAllowed() const; |
| 45 | 40 |
| 46 void parseAttribute(const QualifiedName&, const AtomicString&) override; | 41 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
| 47 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 42 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 48 void didNotifySubtreeInsertionsToDocument() final; | 43 void didNotifySubtreeInsertionsToDocument() final; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 61 bool isHTMLContentAttribute(const Attribute&) const final; | 56 bool isHTMLContentAttribute(const Attribute&) const final; |
| 62 | 57 |
| 63 bool areAuthorShadowsAllowed() const final { return false; } | 58 bool areAuthorShadowsAllowed() const final { return false; } |
| 64 | 59 |
| 65 void setLocation(const String&); | 60 void setLocation(const String&); |
| 66 void setNameAndOpenURL(); | 61 void setNameAndOpenURL(); |
| 67 void openURL(bool replaceCurrentItem = true); | 62 void openURL(bool replaceCurrentItem = true); |
| 68 | 63 |
| 69 AtomicString m_URL; | 64 AtomicString m_URL; |
| 70 AtomicString m_frameName; | 65 AtomicString m_frameName; |
| 71 | |
| 72 ScrollbarMode m_scrolling; | |
| 73 | |
| 74 int m_marginWidth; | |
| 75 int m_marginHeight; | |
| 76 }; | 66 }; |
| 77 | 67 |
| 78 inline bool isHTMLFrameElementBase(const HTMLElement& element) | 68 inline bool isHTMLFrameElementBase(const HTMLElement& element) |
| 79 { | 69 { |
| 80 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); | 70 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); |
| 81 } | 71 } |
| 82 | 72 |
| 83 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); | 73 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); |
| 84 | 74 |
| 85 } // namespace blink | 75 } // namespace blink |
| 86 | 76 |
| 87 #endif // HTMLFrameElementBase_h | 77 #endif // HTMLFrameElementBase_h |
| OLD | NEW |