don't discard iframe children.
[kdelibs.git] / khtml / svg / SVGFontData.h
blobe8dba0fecc793bfea21c9a82af274786d62ca4c2
1 /*
2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
21 #ifndef SVGFontData_h
22 #define SVGFontData_h
24 #if ENABLE(SVG_FONTS)
25 // FIXME khtml #include "SVGFontFaceElement.h"
27 namespace WebCore {
29 class SVGFontData {
30 public:
31 SVGFontData(/*FIXME khtml SVGFontFaceElement**/);
32 virtual ~SVGFontData();
34 // FIXME khtml SVGFontFaceElement* svgFontFaceElement() const { return m_svgFontFaceElement.get(); }
36 float horizontalOriginX() const { return m_horizontalOriginX; }
37 float horizontalOriginY() const { return m_horizontalOriginY; }
38 float horizontalAdvanceX() const { return m_horizontalAdvanceX; }
40 float verticalOriginX() const { return m_verticalOriginX; }
41 float verticalOriginY() const { return m_verticalOriginY; }
42 float verticalAdvanceY() const { return m_verticalAdvanceY; }
44 private:
45 //FIXME khtml RefPtr<SVGFontFaceElement> m_svgFontFaceElement;
47 float m_horizontalOriginX;
48 float m_horizontalOriginY;
49 float m_horizontalAdvanceX;
51 float m_verticalOriginX;
52 float m_verticalOriginY;
53 float m_verticalAdvanceY;
56 } // namespace WebCore
58 #endif
59 #endif // SVGFontData_h