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

Unified Diff: Source/core/svg/SVGUseElement.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/svg/SVGFEImageElement.cpp ('k') | Source/core/xml/XSLImportRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGUseElement.cpp
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
index e7cc3c9764d4a14e751ec64036114680d44ae057..e56f7c78d65ffa83f4748ca4b87916614e959905 100644
--- a/Source/core/svg/SVGUseElement.cpp
+++ b/Source/core/svg/SVGUseElement.cpp
@@ -227,7 +227,7 @@ void SVGUseElement::svgAttributeChanged(const QualifiedName& attrName)
KURL url = document().completeURL(hrefString());
if (url.hasFragmentIdentifier()) {
FetchRequest request(ResourceRequest(url), localName());
- setDocumentResource(document().fetcher()->fetchSVGDocument(request));
+ setDocumentResource(DocumentResource::fetchSVGDocument(request, document().fetcher()));
}
} else {
setDocumentResource(0);
« no previous file with comments | « Source/core/svg/SVGFEImageElement.cpp ('k') | Source/core/xml/XSLImportRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698