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