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

Unified Diff: Source/core/dom/ProcessingInstruction.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/StyleRuleImport.cpp ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ProcessingInstruction.cpp
diff --git a/Source/core/dom/ProcessingInstruction.cpp b/Source/core/dom/ProcessingInstruction.cpp
index 068410e44814858772afec965f9ef943dac0593e..aca9261fa0f88838620bcc97526cd89b63b73a48 100644
--- a/Source/core/dom/ProcessingInstruction.cpp
+++ b/Source/core/dom/ProcessingInstruction.cpp
@@ -170,10 +170,10 @@ void ProcessingInstruction::process(const String& href, const String& charset)
FetchRequest request(ResourceRequest(document().completeURL(href)), FetchInitiatorTypeNames::processinginstruction);
if (m_isXSL) {
if (RuntimeEnabledFeatures::xsltEnabled())
- resource = document().fetcher()->fetchXSLStyleSheet(request);
+ resource = XSLStyleSheetResource::fetch(request, document().fetcher());
} else {
request.setCharset(charset.isEmpty() ? document().charset() : charset);
- resource = document().fetcher()->fetchCSSStyleSheet(request);
+ resource = CSSStyleSheetResource::fetch(request, document().fetcher());
}
if (resource) {
« no previous file with comments | « Source/core/css/StyleRuleImport.cpp ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698