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

Side by Side Diff: Source/core/svg/SVGUseElement.cpp

Issue 561383002: Use KURL when constructing ResourceRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 if (renderer) 192 if (renderer)
193 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render er); 193 RenderSVGResource::markForLayoutAndParentResourceInvalidation(render er);
194 return; 194 return;
195 } 195 }
196 196
197 if (SVGURIReference::isKnownAttribute(attrName)) { 197 if (SVGURIReference::isKnownAttribute(attrName)) {
198 bool isExternalReference = isExternalURIReference(hrefString(), document ()); 198 bool isExternalReference = isExternalURIReference(hrefString(), document ());
199 if (isExternalReference) { 199 if (isExternalReference) {
200 KURL url = document().completeURL(hrefString()); 200 KURL url = document().completeURL(hrefString());
201 if (url.hasFragmentIdentifier()) { 201 if (url.hasFragmentIdentifier()) {
202 FetchRequest request(ResourceRequest(url.string()), localName()) ; 202 FetchRequest request(ResourceRequest(url), localName());
203 setDocumentResource(document().fetcher()->fetchSVGDocument(reque st)); 203 setDocumentResource(document().fetcher()->fetchSVGDocument(reque st));
204 } 204 }
205 } else { 205 } else {
206 setDocumentResource(0); 206 setDocumentResource(0);
207 } 207 }
208 208
209 invalidateShadowTree(); 209 invalidateShadowTree();
210 210
211 return; 211 return;
212 } 212 }
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 m_resource->addClient(this); 750 m_resource->addClient(this);
751 } 751 }
752 752
753 void SVGUseElement::trace(Visitor* visitor) 753 void SVGUseElement::trace(Visitor* visitor)
754 { 754 {
755 visitor->trace(m_targetElementInstance); 755 visitor->trace(m_targetElementInstance);
756 SVGGraphicsElement::trace(visitor); 756 SVGGraphicsElement::trace(visitor);
757 } 757 }
758 758
759 } 759 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698