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 #include "config.h" | 5 #include "config.h" |
6 #if ENABLE(SVG_FONTS) | 6 #if ENABLE(SVG_FONTS) |
7 #include "core/svg/SVGRemoteFontFaceSource.h" | 7 #include "core/svg/SVGRemoteFontFaceSource.h" |
8 | 8 |
9 #include "SVGNames.h" | 9 #include "SVGNames.h" |
10 #include "core/css/FontLoader.h" | 10 #include "core/css/FontLoader.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 if (SVGFontFaceElement* fontFaceElement = Traversal<SVGFontFaceElement>::fir
stChild(*m_externalSVGFontElement)) { | 56 if (SVGFontFaceElement* fontFaceElement = Traversal<SVGFontFaceElement>::fir
stChild(*m_externalSVGFontElement)) { |
57 return SimpleFontData::create( | 57 return SimpleFontData::create( |
58 SVGFontData::create(fontFaceElement), | 58 SVGFontData::create(fontFaceElement), |
59 fontDescription.effectiveFontSize(), | 59 fontDescription.effectiveFontSize(), |
60 fontDescription.isSyntheticBold(), | 60 fontDescription.isSyntheticBold(), |
61 fontDescription.isSyntheticItalic()); | 61 fontDescription.isSyntheticItalic()); |
62 } | 62 } |
63 return nullptr; | 63 return nullptr; |
64 } | 64 } |
65 | 65 |
| 66 void SVGRemoteFontFaceSource::trace(Visitor* visitor) |
| 67 { |
| 68 visitor->trace(m_externalSVGFontElement); |
| 69 RemoteFontFaceSource::trace(visitor); |
| 70 } |
| 71 |
66 } // namespace WebCore | 72 } // namespace WebCore |
67 | 73 |
68 #endif // ENABLE(SVG_FONTS) | 74 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |