Index: third_party/WebKit/Source/core/css/FontFace.cpp |
diff --git a/third_party/WebKit/Source/core/css/FontFace.cpp b/third_party/WebKit/Source/core/css/FontFace.cpp |
index c1e0181c16c89850f6cba11a0853dd96c2bce827..11a1c2a6f9ed5d1f3342abfad4e09bb9532d3c73 100644 |
--- a/third_party/WebKit/Source/core/css/FontFace.cpp |
+++ b/third_party/WebKit/Source/core/css/FontFace.cpp |
@@ -588,10 +588,10 @@ void FontFace::initCSSFontFace(Document* document, PassRefPtrWillBeRawPtr<CSSVal |
const Settings* settings = document ? document->settings() : nullptr; |
bool allowDownloading = settings && settings->downloadableBinaryFontsEnabled(); |
if (allowDownloading && item->isSupportedFormat() && document) { |
- FontResource* fetched = item->fetch(document); |
+ RefPtrWillBeRawPtr<FontResource> fetched = item->fetch(document); |
if (fetched) { |
FontLoader* fontLoader = document->styleEngine().fontSelector()->fontLoader(); |
- source = adoptPtrWillBeNoop(new RemoteFontFaceSource(fetched, fontLoader, CSSValueToFontDisplay(m_display.get()))); |
+ source = adoptPtrWillBeNoop(new RemoteFontFaceSource(fetched.release(), fontLoader, CSSValueToFontDisplay(m_display.get()))); |
} |
} |
} else { |