| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 FontFace* fontFace() const { return m_fontFace; } | 57 FontFace* fontFace() const { return m_fontFace; } |
| 58 | 58 |
| 59 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; } | 59 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; } |
| 60 | 60 |
| 61 void setSegmentedFontFace(CSSSegmentedFontFace*); | 61 void setSegmentedFontFace(CSSSegmentedFontFace*); |
| 62 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; } | 62 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; } |
| 63 | 63 |
| 64 bool isValid() const { return !m_sources.isEmpty(); } | 64 bool isValid() const { return !m_sources.isEmpty(); } |
| 65 bool isBlank() const; |
| 65 | 66 |
| 66 void addSource(CSSFontFaceSource*); | 67 void addSource(CSSFontFaceSource*); |
| 67 | 68 |
| 68 void didBeginLoad(); | 69 void didBeginLoad(); |
| 69 void fontLoaded(RemoteFontFaceSource*); | 70 void fontLoaded(RemoteFontFaceSource*); |
| 70 void didBecomeVisibleFallback(RemoteFontFaceSource*); | 71 void didBecomeVisibleFallback(RemoteFontFaceSource*); |
| 71 | 72 |
| 72 PassRefPtr<SimpleFontData> getFontData(const FontDescription&); | 73 PassRefPtr<SimpleFontData> getFontData(const FontDescription&); |
| 73 | 74 |
| 74 FontFace::LoadStatusType loadStatus() const { return m_fontFace->loadStatus(
); } | 75 FontFace::LoadStatusType loadStatus() const { return m_fontFace->loadStatus(
); } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 86 | 87 |
| 87 RefPtr<UnicodeRangeSet> m_ranges; | 88 RefPtr<UnicodeRangeSet> m_ranges; |
| 88 Member<CSSSegmentedFontFace> m_segmentedFontFace; | 89 Member<CSSSegmentedFontFace> m_segmentedFontFace; |
| 89 HeapDeque<Member<CSSFontFaceSource>> m_sources; | 90 HeapDeque<Member<CSSFontFaceSource>> m_sources; |
| 90 Member<FontFace> m_fontFace; | 91 Member<FontFace> m_fontFace; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace blink | 94 } // namespace blink |
| 94 | 95 |
| 95 #endif | 96 #endif |
| OLD | NEW |