diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFontFaceElement.h')
-rw-r--r-- | Source/WebCore/svg/SVGFontFaceElement.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/Source/WebCore/svg/SVGFontFaceElement.h b/Source/WebCore/svg/SVGFontFaceElement.h index 6a2116a95..5afef2c89 100644 --- a/Source/WebCore/svg/SVGFontFaceElement.h +++ b/Source/WebCore/svg/SVGFontFaceElement.h @@ -19,10 +19,10 @@ * Boston, MA 02110-1301, USA. */ -#ifndef SVGFontFaceElement_h -#define SVGFontFaceElement_h +#pragma once #if ENABLE(SVG_FONTS) + #include "SVGElement.h" namespace WebCore { @@ -32,10 +32,11 @@ class StyleRuleFontFace; class SVGFontFaceElement final : public SVGElement { public: - static PassRefPtr<SVGFontFaceElement> create(const QualifiedName&, Document&); + static Ref<SVGFontFaceElement> create(const QualifiedName&, Document&); unsigned unitsPerEm() const; int xHeight() const; + int capHeight() const; float horizontalOriginX() const; float horizontalOriginY() const; float horizontalAdvanceX() const; @@ -49,28 +50,23 @@ public: SVGFontElement* associatedFontElement() const; void rebuildFontFace(); - StyleRuleFontFace* fontFaceRule() const { return m_fontFaceRule.get(); } + StyleRuleFontFace& fontFaceRule() { return m_fontFaceRule.get(); } private: SVGFontFaceElement(const QualifiedName&, Document&); - virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; + void parseAttribute(const QualifiedName&, const AtomicString&) final; - virtual void childrenChanged(const ChildChange&) override; - virtual InsertionNotificationRequest insertedInto(ContainerNode&) override; - virtual void removedFrom(ContainerNode&) override; + void childrenChanged(const ChildChange&) final; + InsertionNotificationRequest insertedInto(ContainerNode&) final; + void removedFrom(ContainerNode&) final; - virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } + bool rendererIsNeeded(const RenderStyle&) final { return false; } - RefPtr<StyleRuleFontFace> m_fontFaceRule; + Ref<StyleRuleFontFace> m_fontFaceRule; SVGFontElement* m_fontElement; }; -NODE_TYPE_CASTS(SVGFontFaceElement) - } // namespace WebCore #endif // ENABLE(SVG_FONTS) -#endif - -// vim:ts=4:noet |