#pragma once
#include "InlineStyleSheetOwner.h"
#include "SVGElement.h"
namespace WebCore {
class SVGStyleElement final : public SVGElement {
public:
static Ref<SVGStyleElement> create(const QualifiedName&, Document&, bool createdByParser);
virtual ~SVGStyleElement();
CSSStyleSheet* sheet() const { return m_styleSheetOwner.sheet(); }
bool disabled() const;
void setDisabled(bool);
const AtomicString& type() const;
void setType(const AtomicString&);
const AtomicString& media() const;
void setMedia(const AtomicString&);
private:
SVGStyleElement(const QualifiedName&, Document&, bool createdByParser);
void parseAttribute(const QualifiedName&, const AtomicString&) final;
InsertionNotificationRequest insertedInto(ContainerNode&) final;
void removedFrom(ContainerNode&) final;
void childrenChanged(const ChildChange&) final;
bool rendererIsNeeded(const RenderStyle&) final { return false; }
void finishParsingChildren() final;
virtual bool isLoading() const { return m_styleSheetOwner.isLoading(); }
bool sheetLoaded() final { return m_styleSheetOwner.sheetLoaded(*this); }
void startLoadingDynamicSheet() final { m_styleSheetOwner.startLoadingDynamicSheet(*this); }
Timer* svgLoadEventTimer() final { return &m_svgLoadEventTimer; }
String title() const final;
InlineStyleSheetOwner m_styleSheetOwner;
Timer m_svgLoadEventTimer;
};
}