summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/svg/SVGFontFaceSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGFontFaceSource.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/svg/SVGFontFaceSource.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGFontFaceSource.h b/chromium/third_party/WebKit/Source/core/svg/SVGFontFaceSource.h
new file mode 100644
index 00000000000..fdf13f23e98
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/core/svg/SVGFontFaceSource.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SVGFontFaceSource_h
+#define SVGFontFaceSource_h
+
+#if ENABLE(SVG_FONTS)
+
+#include "core/css/CSSFontFaceSource.h"
+
+namespace WebCore {
+
+class SVGFontFaceElement;
+
+class SVGFontFaceSource : public CSSFontFaceSource {
+public:
+ SVGFontFaceSource(SVGFontFaceElement*);
+
+ virtual void trace(Visitor*) OVERRIDE;
+
+private:
+ virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OVERRIDE;
+
+ RawPtrWillBeMember<SVGFontFaceElement> m_svgFontFaceElement;
+};
+
+} // namespace WebCore
+
+#endif // ENABLE(SVG_FONTS)
+#endif