diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2016-08-25 19:20:41 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2017-02-02 12:30:55 +0000 |
commit | 6882a04fb36642862b11efe514251d32070c3d65 (patch) | |
tree | b7959826000b061fd5ccc7512035c7478742f7b0 /Source/WebCore/html/HTMLFrameElementBase.h | |
parent | ab6df191029eeeb0b0f16f127d553265659f739e (diff) | |
download | qtwebkit-6882a04fb36642862b11efe514251d32070c3d65.tar.gz |
Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)
Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/WebCore/html/HTMLFrameElementBase.h')
-rw-r--r-- | Source/WebCore/html/HTMLFrameElementBase.h | 46 |
1 files changed, 20 insertions, 26 deletions
diff --git a/Source/WebCore/html/HTMLFrameElementBase.h b/Source/WebCore/html/HTMLFrameElementBase.h index c094f1210..013cba0b9 100644 --- a/Source/WebCore/html/HTMLFrameElementBase.h +++ b/Source/WebCore/html/HTMLFrameElementBase.h @@ -24,6 +24,7 @@ #ifndef HTMLFrameElementBase_h #define HTMLFrameElementBase_h +#include "FrameLoaderTypes.h" #include "HTMLFrameOwnerElement.h" #include "ScrollTypes.h" @@ -31,10 +32,10 @@ namespace WebCore { class HTMLFrameElementBase : public HTMLFrameOwnerElement { public: - KURL location() const; + URL location() const; void setLocation(const String&); - virtual ScrollbarMode scrollingMode() const { return m_scrolling; } + virtual ScrollbarMode scrollingMode() const override final { return m_scrolling; } int marginWidth() const { return m_marginWidth; } int marginHeight() const { return m_marginHeight; } @@ -42,33 +43,29 @@ public: int width(); int height(); - virtual bool canContainRangeEndPoint() const { return false; } + virtual bool canContainRangeEndPoint() const override final { return false; } protected: - HTMLFrameElementBase(const QualifiedName&, Document*); + HTMLFrameElementBase(const QualifiedName&, Document&); bool isURLAllowed() const; - virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; - virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; - virtual void didNotifySubtreeInsertions(ContainerNode*) OVERRIDE; - virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; + virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; + virtual InsertionNotificationRequest insertedInto(ContainerNode&) override final; + virtual void finishedInsertingSubtree() override final; + virtual void didAttachRenderers() override; private: - virtual bool supportsFocus() const OVERRIDE; - virtual void setFocus(bool) OVERRIDE; + virtual bool supportsFocus() const override final; + virtual void setFocus(bool) override final; - virtual bool isURLAttribute(const Attribute&) const OVERRIDE; - virtual bool isHTMLContentAttribute(const Attribute&) const OVERRIDE; + virtual bool isURLAttribute(const Attribute&) const override final; + virtual bool isHTMLContentAttribute(const Attribute&) const override final; - virtual bool isFrameElementBase() const { return true; } - - virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } - - bool viewSourceMode() const { return m_viewSource; } + virtual bool isFrameElementBase() const override final { return true; } void setNameAndOpenURL(); - void openURL(bool lockHistory = true, bool lockBackForwardList = true); + void openURL(LockHistory = LockHistory::Yes, LockBackForwardList = LockBackForwardList::Yes); AtomicString m_URL; AtomicString m_frameName; @@ -77,16 +74,13 @@ private: int m_marginWidth; int m_marginHeight; - - bool m_viewSource; }; -inline HTMLFrameElementBase* toHTMLFrameElementBase(Node* node) -{ - ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::frameTag) || node->hasTagName(HTMLNames::iframeTag)); - return static_cast<HTMLFrameElementBase*>(node); -} - } // namespace WebCore +SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::HTMLFrameElementBase) + static bool isType(const WebCore::HTMLElement& element) { return is<WebCore::HTMLFrameElement>(element) || is<WebCore::HTMLIFrameElement>(element); } + static bool isType(const WebCore::Node& node) { return is<WebCore::HTMLElement>(node) && isType(downcast<WebCore::HTMLElement>(node)); } +SPECIALIZE_TYPE_TRAITS_END() + #endif // HTMLFrameElementBase_h |