OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } else { | 69 } else { |
70 m_sources.removeFirst(); | 70 m_sources.removeFirst(); |
71 load(); | 71 load(); |
72 } | 72 } |
73 } | 73 } |
74 | 74 |
75 if (m_segmentedFontFace) | 75 if (m_segmentedFontFace) |
76 m_segmentedFontFace->fontFaceInvalidated(); | 76 m_segmentedFontFace->fontFaceInvalidated(); |
77 } | 77 } |
78 | 78 |
| 79 bool CSSFontFace::isBlank() const |
| 80 { |
| 81 return !m_sources.isEmpty() && m_sources.first()->isBlank(); |
| 82 } |
| 83 |
79 void CSSFontFace::didBecomeVisibleFallback(RemoteFontFaceSource* source) | 84 void CSSFontFace::didBecomeVisibleFallback(RemoteFontFaceSource* source) |
80 { | 85 { |
81 if (!isValid() || source != m_sources.first()) | 86 if (!isValid() || source != m_sources.first()) |
82 return; | 87 return; |
83 if (m_segmentedFontFace) | 88 if (m_segmentedFontFace) |
84 m_segmentedFontFace->fontFaceInvalidated(); | 89 m_segmentedFontFace->fontFaceInvalidated(); |
85 } | 90 } |
86 | 91 |
87 PassRefPtr<SimpleFontData> CSSFontFace::getFontData(const FontDescription& fontD
escription) | 92 PassRefPtr<SimpleFontData> CSSFontFace::getFontData(const FontDescription& fontD
escription) |
88 { | 93 { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 201 } |
197 | 202 |
198 DEFINE_TRACE(CSSFontFace) | 203 DEFINE_TRACE(CSSFontFace) |
199 { | 204 { |
200 visitor->trace(m_segmentedFontFace); | 205 visitor->trace(m_segmentedFontFace); |
201 visitor->trace(m_sources); | 206 visitor->trace(m_sources); |
202 visitor->trace(m_fontFace); | 207 visitor->trace(m_fontFace); |
203 } | 208 } |
204 | 209 |
205 } // namespace blink | 210 } // namespace blink |
OLD | NEW |