| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 m_cachedImage->removeClient(this); | 75 m_cachedImage->removeClient(this); |
| 76 m_cachedImage = 0; | 76 m_cachedImage = 0; |
| 77 } | 77 } |
| 78 | 78 |
| 79 ASSERT(document()); | 79 ASSERT(document()); |
| 80 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this)
; | 80 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this)
; |
| 81 } | 81 } |
| 82 | 82 |
| 83 void SVGFEImageElement::requestImageResource() | 83 void SVGFEImageElement::requestImageResource() |
| 84 { | 84 { |
| 85 CachedResourceRequest request(ResourceRequest(ownerDocument()->completeURL(h
ref()))); | 85 CachedResourceRequest request(ResourceRequest(ownerDocument()->completeURL(h
ref())), localName()); |
| 86 request.setInitiator(this); | |
| 87 m_cachedImage = document()->cachedResourceLoader()->requestImage(request); | 86 m_cachedImage = document()->cachedResourceLoader()->requestImage(request); |
| 88 | 87 |
| 89 if (m_cachedImage) | 88 if (m_cachedImage) |
| 90 m_cachedImage->addClient(this); | 89 m_cachedImage->addClient(this); |
| 91 } | 90 } |
| 92 | 91 |
| 93 void SVGFEImageElement::buildPendingResource() | 92 void SVGFEImageElement::buildPendingResource() |
| 94 { | 93 { |
| 95 clearResourceReferences(); | 94 clearResourceReferences(); |
| 96 if (!inDocument()) | 95 if (!inDocument()) |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st | 212 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st |
| 214 { | 213 { |
| 215 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); | 214 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); |
| 216 | 215 |
| 217 addSubresourceURL(urls, document()->completeURL(href())); | 216 addSubresourceURL(urls, document()->completeURL(href())); |
| 218 } | 217 } |
| 219 | 218 |
| 220 } | 219 } |
| 221 | 220 |
| 222 #endif // ENABLE(SVG) | 221 #endif // ENABLE(SVG) |
| OLD | NEW |