Chromium Code Reviews| Index: Source/platform/fonts/FontFallbackList.cpp |
| diff --git a/Source/platform/fonts/FontFallbackList.cpp b/Source/platform/fonts/FontFallbackList.cpp |
| index f9f004630885c255f550b7cdc55e1ba829f1bd72..6ab76bcc12f3259d485297db232b55ef3a7f4168 100644 |
| --- a/Source/platform/fonts/FontFallbackList.cpp |
| +++ b/Source/platform/fonts/FontFallbackList.cpp |
| @@ -71,7 +71,7 @@ void FontFallbackList::releaseFontData() |
| for (unsigned i = 0; i < numFonts; ++i) { |
| if (!m_fontList[i]->isCustomFont()) { |
| ASSERT(!m_fontList[i]->isSegmented()); |
| - FontCache::fontCache()->releaseFontData(static_cast<const SimpleFontData*>(m_fontList[i].get())); |
| + FontCache::fontCache()->releaseFontData(toSimpleFontData(m_fontList[i].get())); |
|
tkent
2014/07/17 02:29:16
DEFINE_FONT_DATA_TYPE_CASTS should take care of Re
gyuyoung-inactive
2014/07/17 04:04:14
ok, fixed.
|
| } |
| } |
| } |
| @@ -95,7 +95,7 @@ void FontFallbackList::determinePitch(const FontDescription& fontDescription) co |
| } |
| simpleFontData = segmentedFontData->rangeAt(0).fontData().get(); |
| } else { |
| - simpleFontData = static_cast<const SimpleFontData*>(fontData); |
| + simpleFontData = toSimpleFontData(fontData); |
| } |
| if (!fontData->isLoadingFallback()) { |
| m_pitch = simpleFontData->pitch(); |