| 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 23 matching lines...) Expand all Loading... |
| 34 virtual ScrollbarMode scrollingMode() const OVERRIDE FINAL { return m_scroll
ing; } | 34 virtual ScrollbarMode scrollingMode() const OVERRIDE FINAL { return m_scroll
ing; } |
| 35 | 35 |
| 36 int marginWidth() const { return m_marginWidth; } | 36 int marginWidth() const { return m_marginWidth; } |
| 37 int marginHeight() const { return m_marginHeight; } | 37 int marginHeight() const { return m_marginHeight; } |
| 38 | 38 |
| 39 int width(); | 39 int width(); |
| 40 int height(); | 40 int height(); |
| 41 | 41 |
| 42 virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return false;
} | 42 virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return false;
} |
| 43 | 43 |
| 44 const AtomicString& url() const { return m_URL; } |
| 45 void setNameAndOpenURL(); |
| 46 |
| 44 protected: | 47 protected: |
| 45 HTMLFrameElementBase(const QualifiedName&, Document&); | 48 HTMLFrameElementBase(const QualifiedName&, Document&); |
| 46 | 49 |
| 47 bool isURLAllowed() const; | 50 bool isURLAllowed() const; |
| 48 | 51 |
| 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 52 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 53 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 51 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE FINAL; | 54 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE FINAL; |
| 52 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; | 55 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
| 53 | 56 |
| 54 private: | 57 private: |
| 55 virtual bool supportsFocus() const OVERRIDE FINAL; | 58 virtual bool supportsFocus() const OVERRIDE FINAL; |
| 56 virtual void setFocus(bool) OVERRIDE FINAL; | 59 virtual void setFocus(bool) OVERRIDE FINAL; |
| 57 | 60 |
| 58 virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; | 61 virtual bool isURLAttribute(const Attribute&) const OVERRIDE FINAL; |
| 59 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
L; | 62 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE FINA
L; |
| 60 virtual bool isHTMLContentAttribute(const Attribute&) const OVERRIDE FINAL; | 63 virtual bool isHTMLContentAttribute(const Attribute&) const OVERRIDE FINAL; |
| 61 | 64 |
| 62 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false;
} | 65 virtual bool areAuthorShadowsAllowed() const OVERRIDE FINAL { return false;
} |
| 63 | 66 |
| 64 void setLocation(const String&); | 67 void setLocation(const String&); |
| 65 void setNameAndOpenURL(); | |
| 66 void openURL(bool lockBackForwardList = true); | 68 void openURL(bool lockBackForwardList = true); |
| 67 | 69 |
| 68 AtomicString m_URL; | 70 AtomicString m_URL; |
| 69 AtomicString m_frameName; | 71 AtomicString m_frameName; |
| 70 | 72 |
| 71 ScrollbarMode m_scrolling; | 73 ScrollbarMode m_scrolling; |
| 72 | 74 |
| 73 int m_marginWidth; | 75 int m_marginWidth; |
| 74 int m_marginHeight; | 76 int m_marginHeight; |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 inline bool isHTMLFrameElementBase(const Element& element) | 79 inline bool isHTMLFrameElementBase(const Element& element) |
| 78 { | 80 { |
| 79 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); | 81 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); |
| 80 } | 82 } |
| 81 | 83 |
| 82 inline bool isHTMLFrameElementBase(const HTMLElement& element) | 84 inline bool isHTMLFrameElementBase(const HTMLElement& element) |
| 83 { | 85 { |
| 84 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); | 86 return isHTMLFrameElement(element) || isHTMLIFrameElement(element); |
| 85 } | 87 } |
| 86 | 88 |
| 87 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); | 89 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFrameElementBase); |
| 88 | 90 |
| 89 } // namespace WebCore | 91 } // namespace WebCore |
| 90 | 92 |
| 91 #endif // HTMLFrameElementBase_h | 93 #endif // HTMLFrameElementBase_h |
| OLD | NEW |