| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 return; | 220 return; |
| 221 } | 221 } |
| 222 | 222 |
| 223 if (SVGURIReference::isKnownAttribute(attrName)) { | 223 if (SVGURIReference::isKnownAttribute(attrName)) { |
| 224 SVGElement::InvalidationGuard invalidationGuard(this); | 224 SVGElement::InvalidationGuard invalidationGuard(this); |
| 225 bool isExternalReference = isExternalURIReference(hrefString(), document
()); | 225 bool isExternalReference = isExternalURIReference(hrefString(), document
()); |
| 226 if (isExternalReference) { | 226 if (isExternalReference) { |
| 227 KURL url = document().completeURL(hrefString()); | 227 KURL url = document().completeURL(hrefString()); |
| 228 if (url.hasFragmentIdentifier()) { | 228 if (url.hasFragmentIdentifier()) { |
| 229 FetchRequest request(ResourceRequest(url), localName()); | 229 FetchRequest request(ResourceRequest(url), localName()); |
| 230 setDocumentResource(document().fetcher()->fetchSVGDocument(reque
st)); | 230 setDocumentResource(DocumentResource::fetchSVGDocument(request,
document().fetcher())); |
| 231 } | 231 } |
| 232 } else { | 232 } else { |
| 233 setDocumentResource(0); | 233 setDocumentResource(0); |
| 234 } | 234 } |
| 235 | 235 |
| 236 invalidateShadowTree(); | 236 invalidateShadowTree(); |
| 237 | 237 |
| 238 return; | 238 return; |
| 239 } | 239 } |
| 240 | 240 |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 | 774 |
| 775 if (m_resource) | 775 if (m_resource) |
| 776 m_resource->removeClient(this); | 776 m_resource->removeClient(this); |
| 777 | 777 |
| 778 m_resource = resource; | 778 m_resource = resource; |
| 779 if (m_resource) | 779 if (m_resource) |
| 780 m_resource->addClient(this); | 780 m_resource->addClient(this); |
| 781 } | 781 } |
| 782 | 782 |
| 783 } | 783 } |
| OLD | NEW |