diff options
Diffstat (limited to 'Source/WebCore/svg/SVGStyleElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGStyleElement.h | 41 |
1 files changed, 16 insertions, 25 deletions
diff --git a/Source/WebCore/svg/SVGStyleElement.h b/Source/WebCore/svg/SVGStyleElement.h index e583a32fd..701dad7e6 100644 --- a/Source/WebCore/svg/SVGStyleElement.h +++ b/Source/WebCore/svg/SVGStyleElement.h @@ -19,10 +19,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGStyleElement_h -#define SVGStyleElement_h +#pragma once -#if ENABLE(SVG) #include "InlineStyleSheetOwner.h" #include "SVGElement.h" @@ -30,7 +28,7 @@ namespace WebCore { class SVGStyleElement final : public SVGElement { public: - static PassRefPtr<SVGStyleElement> create(const QualifiedName&, Document&, bool createdByParser); + static Ref<SVGStyleElement> create(const QualifiedName&, Document&, bool createdByParser); virtual ~SVGStyleElement(); CSSStyleSheet* sheet() const { return m_styleSheetOwner.sheet(); } @@ -39,39 +37,32 @@ public: void setDisabled(bool); const AtomicString& type() const; - void setType(const AtomicString&, ExceptionCode&); + void setType(const AtomicString&); const AtomicString& media() const; - void setMedia(const AtomicString&, ExceptionCode&); - - String title() const override; - void setTitle(const AtomicString&, ExceptionCode&); + void setMedia(const AtomicString&); 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; + void parseAttribute(const QualifiedName&, const AtomicString&) final; + InsertionNotificationRequest insertedInto(ContainerNode&) final; + void removedFrom(ContainerNode&) final; + void childrenChanged(const ChildChange&) final; - virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } + bool rendererIsNeeded(const RenderStyle&) final { return false; } - virtual void finishParsingChildren() override; + void finishParsingChildren() final; 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; } + 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<SVGElement> m_svgLoadEventTimer; + Timer m_svgLoadEventTimer; }; -NODE_TYPE_CASTS(SVGStyleElement) - } // namespace WebCore - -#endif // ENABLE(SVG) -#endif // SVGStyleElement_h |