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