#ifndef HTMLBodyElement_h
#define HTMLBodyElement_h
#include "HTMLElement.h"
namespace WebCore {
class HTMLBodyElement final : public HTMLElement {
public:
static Ref<HTMLBodyElement> create(Document&);
static Ref<HTMLBodyElement> create(const QualifiedName&, Document&);
virtual ~HTMLBodyElement();
static const AtomicString& eventNameForWindowEventHandlerAttribute(const QualifiedName& attributeName);
private:
HTMLBodyElement(const QualifiedName&, Document&);
bool isFirstBodyElementOfDocument() const;
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual bool isPresentationAttribute(const QualifiedName&) const override;
virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override;
virtual InsertionNotificationRequest insertedInto(ContainerNode&) override;
virtual bool isURLAttribute(const Attribute&) const override;
virtual bool supportsFocus() const override;
virtual int scrollLeft() override;
virtual void setScrollLeft(int) override;
virtual int scrollTop() override;
virtual void setScrollTop(int) override;
virtual int scrollHeight() override;
virtual int scrollWidth() override;
virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override;
static EventHandlerNameMap createWindowEventHandlerNameMap();
};
}
#endif