Index: Source/core/svg/SVGFontFaceElement.h |
diff --git a/Source/core/svg/SVGFontFaceElement.h b/Source/core/svg/SVGFontFaceElement.h |
deleted file mode 100644 |
index 885c7a7ea8794278ab748b02de9c6ca9dfea4ae6..0000000000000000000000000000000000000000 |
--- a/Source/core/svg/SVGFontFaceElement.h |
+++ /dev/null |
@@ -1,79 +0,0 @@ |
-/* |
- * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
- * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
- * Copyright (C) 2008 Apple Inc. All rights reserved. |
- * |
- * This library is free software; you can redistribute it and/or |
- * modify it under the terms of the GNU Library General Public |
- * License as published by the Free Software Foundation; either |
- * version 2 of the License, or (at your option) any later version. |
- * |
- * This library is distributed in the hope that it will be useful, |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
- * Library General Public License for more details. |
- * |
- * You should have received a copy of the GNU Library General Public License |
- * along with this library; see the file COPYING.LIB. If not, write to |
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
- * Boston, MA 02110-1301, USA. |
- */ |
- |
-#ifndef SVGFontFaceElement_h |
-#define SVGFontFaceElement_h |
- |
-#if ENABLE(SVG_FONTS) |
-#include "core/SVGNames.h" |
-#include "core/svg/SVGElement.h" |
-#include "wtf/WeakPtr.h" |
- |
-namespace blink { |
- |
-class SVGFontElement; |
-class StyleRuleFontFace; |
- |
-class SVGFontFaceElement final : public SVGElement { |
- DEFINE_WRAPPERTYPEINFO(); |
-public: |
- DECLARE_NODE_FACTORY(SVGFontFaceElement); |
- |
- unsigned unitsPerEm() const; |
- int xHeight() const; |
- float horizontalOriginX() const; |
- float horizontalOriginY() const; |
- float horizontalAdvanceX() const; |
- float verticalOriginX() const; |
- float verticalOriginY() const; |
- float verticalAdvanceY() const; |
- int ascent() const; |
- int descent() const; |
- String fontFamily() const; |
- |
- SVGFontElement* associatedFontElement() const; |
- void rebuildFontFace(); |
- |
- StyleRuleFontFace* fontFaceRule() const { return m_fontFaceRule.get(); } |
- WeakPtr<SVGFontFaceElement> createWeakRef() { return m_weakFactory.createWeakPtr(); } |
- |
- virtual void trace(Visitor*) override; |
- |
-private: |
- explicit SVGFontFaceElement(Document&); |
- |
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override; |
- |
- virtual void childrenChanged(const ChildrenChange&) override; |
- virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
- virtual void removedFrom(ContainerNode*) override; |
- |
- virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } |
- |
- RefPtrWillBeMember<StyleRuleFontFace> m_fontFaceRule; |
- RawPtrWillBeMember<SVGFontElement> m_fontElement; |
- WeakPtrFactory<SVGFontFaceElement> m_weakFactory; |
-}; |
- |
-} // namespace blink |
- |
-#endif // ENABLE(SVG_FONTS) |
-#endif // SVGFontFaceElement_h |