- Timestamp:
- 10/03/07 14:04:03 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-branch/WebCore/platform/FontFallbackList.cpp
r20495 r26027 36 36 37 37 FontFallbackList::FontFallbackList() 38 : m_familyIndex(0), m_pitch(UnknownPitch) 38 : m_familyIndex(0) 39 , m_pitch(UnknownPitch) 40 , m_loadingCustomFonts(false) 41 , m_fontSelector(0) 39 42 { 40 43 } 41 44 42 void FontFallbackList::invalidate( )45 void FontFallbackList::invalidate(PassRefPtr<FontSelector> fontSelector) 43 46 { 44 47 m_fontList.clear(); 45 48 m_familyIndex = 0; 46 49 m_pitch = UnknownPitch; 50 m_loadingCustomFonts = false; 51 m_fontSelector = fontSelector; 47 52 } 48 53 … … 67 72 // in |m_familyIndex|, so that we never scan the same spot in the list twice. getFontData will adjust our 68 73 // |m_familyIndex| as it scans for the right font to make. 69 const FontData* result = FontCache::getFontData(*font, m_familyIndex );70 if (result) 74 const FontData* result = FontCache::getFontData(*font, m_familyIndex, m_fontSelector.get()); 75 if (result) { 71 76 m_fontList.append(result); 77 if (result->isLoading()) 78 m_loadingCustomFonts = true; 79 } 72 80 return result; 73 81 }