1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SVGFontFaceSource_h
6#define SVGFontFaceSource_h
7
8#if ENABLE(SVG_FONTS)
9
10#include "core/css/CSSFontFaceSource.h"
11
12namespace blink {
13
14class SVGFontFaceElement;
15
16class SVGFontFaceSource : public CSSFontFaceSource {
17public:
18    SVGFontFaceSource(SVGFontFaceElement*);
19
20    virtual void trace(Visitor*) OVERRIDE;
21
22private:
23    virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OVERRIDE;
24
25    RawPtrWillBeMember<SVGFontFaceElement> m_svgFontFaceElement;
26};
27
28} // namespace blink
29
30#endif // ENABLE(SVG_FONTS)
31#endif
32