Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
index 2703956a9b320ec3d48060867a3f627fe1601140..99d39f6f751fa09ea110ce465b65b818f13bdbdd 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
@@ -93,10 +93,10 @@ FontResource* CSSFontFaceSrcValue::fetch(Document* document)
SecurityOrigin* securityOrigin = document->getSecurityOrigin();
setCrossOriginAccessControl(request, securityOrigin);
request.mutableResourceRequest().setHTTPReferrer(SecurityPolicy::generateReferrer(m_referrer.referrerPolicy, request.url(), m_referrer.referrer));
- RawPtr<FontResource> resource = FontResource::fetch(request, document->fetcher());
+ FontResource* resource = FontResource::fetch(request, document->fetcher());
if (!resource)
return nullptr;
- m_fetched = FontResourceHelper::create(resource.release());
+ m_fetched = FontResourceHelper::create(resource);
} else {
// FIXME: CSSFontFaceSrcValue::fetch is invoked when @font-face rule
// is processed by StyleResolver / StyleEngine.
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h ('k') | third_party/WebKit/Source/core/css/CSSFontFamilyValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698