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

Unified Diff: Source/core/html/HTMLLinkElement.cpp

Issue 1170503003: Remove resource type-specific fetching logic from ResourceFetcher (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/html/HTMLLinkElement.cpp
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
index a1f97128ea5e919d88c93d68ce91c952e66607f7..233be7fd534038f5ce67dc68d4ad646160b813e4 100644
--- a/Source/core/html/HTMLLinkElement.cpp
+++ b/Source/core/html/HTMLLinkElement.cpp
@@ -735,7 +735,7 @@ void LinkStyle::process()
request.setCrossOriginAccessControl(document().securityOrigin(), crossOriginMode);
setFetchFollowingCORS();
}
- setResource(document().fetcher()->fetchCSSStyleSheet(request));
+ setResource(CSSStyleSheetResource::fetch(request, document().fetcher()));
if (!resource()) {
// The request may have been denied if (for example) the stylesheet is local and the document is remote, or if there was a Content Security Policy Failure.

Powered by Google App Engine
This is Rietveld 408576698