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

Unified Diff: Source/core/css/CSSImageValue.cpp

Issue 1170503003: Remove resource type-specific fetching logic from ResourceFetcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Null-check Document::loader() before calling startPreload() Created 5 years, 6 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
« no previous file with comments | « Source/core/css/CSSImageSetValue.cpp ('k') | Source/core/css/CSSSVGDocumentValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSImageValue.cpp
diff --git a/Source/core/css/CSSImageValue.cpp b/Source/core/css/CSSImageValue.cpp
index 269171aecf3cd349ba1b6e6feba6f05e90dea4d0..f6ba3cb201c183e8633039b97025c4e71888ddce 100644
--- a/Source/core/css/CSSImageValue.cpp
+++ b/Source/core/css/CSSImageValue.cpp
@@ -68,7 +68,7 @@ StyleFetchedImage* CSSImageValue::cachedImage(Document* document, const Resource
if (options.corsEnabled == IsCORSEnabled)
request.setCrossOriginAccessControl(document->securityOrigin(), options.allowCredentials, options.credentialsRequested);
- if (ResourcePtr<ImageResource> cachedImage = document->fetcher()->fetchImage(request))
+ if (ResourcePtr<ImageResource> cachedImage = ImageResource::fetch(request, document->fetcher()))
m_image = StyleFetchedImage::create(cachedImage.get(), document);
}
« no previous file with comments | « Source/core/css/CSSImageSetValue.cpp ('k') | Source/core/css/CSSSVGDocumentValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698