summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGHKernElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGHKernElement.h')
-rw-r--r--Source/WebCore/svg/SVGHKernElement.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/Source/WebCore/svg/SVGHKernElement.h b/Source/WebCore/svg/SVGHKernElement.h
index e5d8b78fd..feab463d2 100644
--- a/Source/WebCore/svg/SVGHKernElement.h
+++ b/Source/WebCore/svg/SVGHKernElement.h
@@ -19,32 +19,26 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGHKernElement_h
-#define SVGHKernElement_h
+#pragma once
#if ENABLE(SVG_FONTS)
+
#include "SVGFontElement.h"
namespace WebCore {
class SVGHKernElement final : public SVGElement {
public:
- static PassRefPtr<SVGHKernElement> create(const QualifiedName&, Document&);
+ static Ref<SVGHKernElement> create(const QualifiedName&, Document&);
- void buildHorizontalKerningPair(SVGKerningMap&);
+ bool buildHorizontalKerningPair(SVGKerningPair& kerningPair) const;
private:
SVGHKernElement(const QualifiedName&, Document&);
- virtual InsertionNotificationRequest insertedInto(ContainerNode&) override;
- virtual void removedFrom(ContainerNode&) override;
-
- virtual bool rendererIsNeeded(const RenderStyle&) override { return false; }
+ bool rendererIsNeeded(const RenderStyle&) final { return false; }
};
-NODE_TYPE_CASTS(SVGHKernElement)
-
} // namespace WebCore
#endif // ENABLE(SVG_FONTS)
-#endif