OLD | NEW |
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 return; | 244 return; |
245 | 245 |
246 if (SVGExternalResourcesRequired::handleAttributeChange(this, attrName)) | 246 if (SVGExternalResourcesRequired::handleAttributeChange(this, attrName)) |
247 return; | 247 return; |
248 | 248 |
249 if (SVGURIReference::isKnownAttribute(attrName)) { | 249 if (SVGURIReference::isKnownAttribute(attrName)) { |
250 bool isExternalReference = isExternalURIReference(href(), document()); | 250 bool isExternalReference = isExternalURIReference(href(), document()); |
251 if (isExternalReference) { | 251 if (isExternalReference) { |
252 KURL url = document()->completeURL(href()); | 252 KURL url = document()->completeURL(href()); |
253 if (url.hasFragmentIdentifier()) { | 253 if (url.hasFragmentIdentifier()) { |
254 CachedResourceRequest request(ResourceRequest(url.string())); | 254 CachedResourceRequest request(ResourceRequest(url.string()), loc
alName()); |
255 request.setInitiator(this); | |
256 setCachedDocument(document()->cachedResourceLoader()->requestSVG
Document(request)); | 255 setCachedDocument(document()->cachedResourceLoader()->requestSVG
Document(request)); |
257 } | 256 } |
258 } else | 257 } else |
259 setCachedDocument(0); | 258 setCachedDocument(0); |
260 | 259 |
261 if (!m_wasInsertedByParser) | 260 if (!m_wasInsertedByParser) |
262 buildPendingResource(); | 261 buildPendingResource(); |
263 | 262 |
264 return; | 263 return; |
265 } | 264 } |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 m_cachedDocument->removeClient(this); | 1003 m_cachedDocument->removeClient(this); |
1005 | 1004 |
1006 m_cachedDocument = cachedDocument; | 1005 m_cachedDocument = cachedDocument; |
1007 if (m_cachedDocument) | 1006 if (m_cachedDocument) |
1008 m_cachedDocument->addClient(this); | 1007 m_cachedDocument->addClient(this); |
1009 } | 1008 } |
1010 | 1009 |
1011 } | 1010 } |
1012 | 1011 |
1013 #endif // ENABLE(SVG) | 1012 #endif // ENABLE(SVG) |
OLD | NEW |