Ignore:
Timestamp:
Oct 26, 2013, 11:39:22 AM (12 years ago)
Author:
Antti Koivisto
Message:

Revert some accidental changes.

  • css/CSSFontFaceSource.cpp:

(WebCore::CSSFontFaceSource::getFontData):

  • css/CSSFontSelector.cpp:
  • css/CSSFontSelector.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSFontFaceSource.cpp

    r158085 r158088  
    171171        fontSelector->beginLoadingFontSoon(m_font.get());
    172172
    173         RefPtr<SimpleFontData> fallback = fontSelector->userStandardFont(fontDescription);
    174         if (!fallback)
    175             fallback = fontCache()->getLastResortFallbackFont(fontDescription);
    176         fontData = SimpleFontData::create(fallback->platformData(), /*isCustomFont*/ true, /*isLoading*/ true);
     173        // This temporary font is not retained and should not be returned.
     174        FontCachePurgePreventer fontCachePurgePreventer;
     175        SimpleFontData* temporaryFont = fontCache()->getNonRetainedLastResortFallbackFont(fontDescription);
     176        fontData = SimpleFontData::create(temporaryFont->platformData(), true, true);
    177177    }
    178178
Note: See TracChangeset for help on using the changeset viewer.