diff options
Diffstat (limited to 'Source/WebCore/svg/SVGTextPositioningElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGTextPositioningElement.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Source/WebCore/svg/SVGTextPositioningElement.h b/Source/WebCore/svg/SVGTextPositioningElement.h index 02c59c60b..7d9d967cc 100644 --- a/Source/WebCore/svg/SVGTextPositioningElement.h +++ b/Source/WebCore/svg/SVGTextPositioningElement.h @@ -18,10 +18,8 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGTextPositioningElement_h -#define SVGTextPositioningElement_h +#pragma once -#if ENABLE(SVG) #include "SVGAnimatedLengthList.h" #include "SVGAnimatedNumberList.h" #include "SVGTextContentElement.h" @@ -30,14 +28,17 @@ namespace WebCore { class SVGTextPositioningElement : public SVGTextContentElement { public: - static SVGTextPositioningElement* elementFromRenderer(RenderObject*); + static SVGTextPositioningElement* elementFromRenderer(RenderBoxModelObject&); protected: SVGTextPositioningElement(const QualifiedName&, Document&); - bool isSupportedAttribute(const QualifiedName&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; - virtual void svgAttributeChanged(const QualifiedName&) override; + void parseAttribute(const QualifiedName&, const AtomicString&) override; + void svgAttributeChanged(const QualifiedName&) override; + +private: + bool isPresentationAttribute(const QualifiedName&) const final; + void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) final; BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGTextPositioningElement) DECLARE_ANIMATED_LENGTH_LIST(X, x) @@ -49,6 +50,3 @@ protected: }; } // namespace WebCore - -#endif // ENABLE(SVG) -#endif |