| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 PassRefPtr<SimpleFontData> getFontData(const FontDescription&); | 74 PassRefPtr<SimpleFontData> getFontData(const FontDescription&); |
| 75 | 75 |
| 76 FontFace::LoadStatusType loadStatus() const { | 76 FontFace::LoadStatusType loadStatus() const { |
| 77 return m_fontFace->loadStatus(); | 77 return m_fontFace->loadStatus(); |
| 78 } | 78 } |
| 79 bool maybeLoadFont(const FontDescription&, const String&); | 79 bool maybeLoadFont(const FontDescription&, const String&); |
| 80 bool maybeLoadFont(const FontDescription&, const FontDataForRangeSet&); | 80 bool maybeLoadFont(const FontDescription&, const FontDataForRangeSet&); |
| 81 void load(); | 81 void load(); |
| 82 void load(const FontDescription&); | 82 void load(const FontDescription&); |
| 83 | 83 |
| 84 bool hadBlankText() { return isValid() && m_sources.first()->hadBlankText(); } | 84 bool hadBlankText() { return isValid() && m_sources.front()->hadBlankText(); } |
| 85 | 85 |
| 86 DECLARE_TRACE(); | 86 DECLARE_TRACE(); |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 void setLoadStatus(FontFace::LoadStatusType); | 89 void setLoadStatus(FontFace::LoadStatusType); |
| 90 | 90 |
| 91 RefPtr<UnicodeRangeSet> m_ranges; | 91 RefPtr<UnicodeRangeSet> m_ranges; |
| 92 Member<CSSSegmentedFontFace> m_segmentedFontFace; | 92 Member<CSSSegmentedFontFace> m_segmentedFontFace; |
| 93 HeapDeque<Member<CSSFontFaceSource>> m_sources; | 93 HeapDeque<Member<CSSFontFaceSource>> m_sources; |
| 94 Member<FontFace> m_fontFace; | 94 Member<FontFace> m_fontFace; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif | 99 #endif |
| OLD | NEW |