#ifndef SVGStyleElement_h
#define SVGStyleElement_h
#include "InlineStyleSheetOwner.h"
#include "SVGElement.h"
namespace WebCore {
class SVGStyleElement final : public SVGElement {
public:
static PassRefPtr<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&, ExceptionCode&);
const AtomicString& media() const;
void setMedia(const AtomicString&, ExceptionCode&);
String title() const override;
void setTitle(const AtomicString&, ExceptionCode&);
private:
SVGStyleElement(const QualifiedName&, Document&, bool createdByParser);
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual InsertionNotificationRequest insertedInto(ContainerNode&) override;
virtual void removedFrom(ContainerNode&) override;
virtual void childrenChanged(const ChildChange&) override;
virtual bool rendererIsNeeded(const RenderStyle&) override { return false; }
virtual void finishParsingChildren() override;
virtual bool isLoading() const { return m_styleSheetOwner.isLoading(); }
virtual bool sheetLoaded() override { return m_styleSheetOwner.sheetLoaded(document()); }
virtual void startLoadingDynamicSheet() override { m_styleSheetOwner.startLoadingDynamicSheet(document()); }
virtual Timer<SVGElement>* svgLoadEventTimer() override { return &m_svgLoadEventTimer; }
InlineStyleSheetOwner m_styleSheetOwner;
Timer<SVGElement> m_svgLoadEventTimer;
};
NODE_TYPE_CASTS(SVGStyleElement)
}
#endif // SVGStyleElement_h