X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FWebCore%2Floader%2Fcache%2FCachedFont.cpp;h=2be4ecd375c13350bffd042aab56e18adaeaa949;hp=2c6716245f4027ae40de4446b0ec6b25725d12dc;hb=4dca004d5adad56223cafd30b90da0166debaafe;hpb=03828233668efef86de193f4fdd942fc9a758ddc;ds=sidebyside diff --git a/Source/WebCore/loader/cache/CachedFont.cpp b/Source/WebCore/loader/cache/CachedFont.cpp index 2c6716245f40..2be4ecd375c1 100644 --- a/Source/WebCore/loader/cache/CachedFont.cpp +++ b/Source/WebCore/loader/cache/CachedFont.cpp @@ -94,13 +94,13 @@ void CachedFont::beginLoadIfNeeded(CachedResourceLoader* dl) bool CachedFont::ensureCustomFontData(bool, const AtomicString&) { - return ensureCustomFontData(m_data.copyRef()); + return ensureCustomFontData(m_data.get()); } -bool CachedFont::ensureCustomFontData(RefPtr&& data) +bool CachedFont::ensureCustomFontData(SharedBuffer* data) { if (!m_fontData && !errorOccurred() && !isLoading() && data) { - RefPtr buffer = data; + RefPtr buffer(data); #if (!PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090) && (!PLATFORM(IOS) || __IPHONE_OS_VERSION_MIN_REQUIRED < 80000) if (isWOFF(buffer.get())) {