summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/svg/RenderSVGTextPath.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/svg/RenderSVGTextPath.h')
-rw-r--r--Source/WebCore/rendering/svg/RenderSVGTextPath.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/Source/WebCore/rendering/svg/RenderSVGTextPath.h b/Source/WebCore/rendering/svg/RenderSVGTextPath.h
index e7e11ad98..95a379274 100644
--- a/Source/WebCore/rendering/svg/RenderSVGTextPath.h
+++ b/Source/WebCore/rendering/svg/RenderSVGTextPath.h
@@ -18,17 +18,15 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef RenderSVGTextPath_h
-#define RenderSVGTextPath_h
+#pragma once
-#if ENABLE(SVG)
#include "RenderSVGInline.h"
namespace WebCore {
class RenderSVGTextPath final : public RenderSVGInline {
public:
- RenderSVGTextPath(SVGTextPathElement&, PassRef<RenderStyle>);
+ RenderSVGTextPath(SVGTextPathElement&, RenderStyle&&);
SVGTextPathElement& textPathElement() const;
@@ -40,15 +38,12 @@ public:
private:
void graphicsElement() const = delete;
- virtual bool isSVGTextPath() const override { return true; }
- virtual const char* renderName() const override { return "RenderSVGTextPath"; }
+ bool isSVGTextPath() const override { return true; }
+ const char* renderName() const override { return "RenderSVGTextPath"; }
Path m_layoutPath;
};
-RENDER_OBJECT_TYPE_CASTS(RenderSVGTextPath, isSVGTextPath())
+} // namespace WebCore
-}
-
-#endif // ENABLE(SVG)
-#endif // RenderSVGTextPath_h
+SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderSVGTextPath, isSVGTextPath())