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 2f4661d9dc67192a1e0ebcf29cf0d26a4db07a13..710f52745787aa3c1636f7d6e4b94fd0baaff1f6 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 { |