HTMLFrameElementBase.h [plain text]
#pragma once
#include "FrameLoaderTypes.h"
#include "HTMLFrameOwnerElement.h"
namespace JSC {
class CallFrame;
}
namespace WebCore {
class HTMLFrameElementBase : public HTMLFrameOwnerElement {
WTF_MAKE_ISO_ALLOCATED(HTMLFrameElementBase);
public:
WEBCORE_EXPORT URL location() const;
WEBCORE_EXPORT void setLocation(const String&);
void setLocation(JSC::JSGlobalObject&, const String&);
ScrollbarMode scrollingMode() const final;
WEBCORE_EXPORT int width();
WEBCORE_EXPORT int height();
protected:
HTMLFrameElementBase(const QualifiedName&, Document&);
bool canLoad() const;
void parseAttribute(const QualifiedName&, const AtomString&) override;
InsertedIntoAncestorResult insertedIntoAncestor(InsertionType, ContainerNode&) final;
void didFinishInsertingNode() final;
void didAttachRenderers() override;
private:
bool canLoadScriptURL(const URL&) const final;
bool canLoadURL(const String& relativeURL) const;
bool canLoadURL(const URL&) const;
bool canContainRangeEndPoint() const final { return false; }
bool supportsFocus() const final;
void setFocus(bool) final;
bool isURLAttribute(const Attribute&) const final;
bool isHTMLContentAttribute(const Attribute&) const final;
void openURL(LockHistory = LockHistory::Yes, LockBackForwardList = LockBackForwardList::Yes);
AtomString m_URL;
};
}
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()