blob: 9211727a89e0865f1fc712dd172bfb7c6efc32de [file] [log] [blame]
// 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(PassRefPtr<SVGFontFaceElement>);
private:
virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OVERRIDE;
RefPtr<SVGFontFaceElement> m_svgFontFaceElement;
};
} // namespace WebCore
#endif // ENABLE(SVG_FONTS)
#endif