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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 m_cachedImage->removeClient(this); | 74 m_cachedImage->removeClient(this); |
75 m_cachedImage = 0; | 75 m_cachedImage = 0; |
76 } | 76 } |
77 | 77 |
78 ASSERT(document()); | 78 ASSERT(document()); |
79 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this)
; | 79 document()->accessSVGExtensions()->removeAllTargetReferencesForElement(this)
; |
80 } | 80 } |
81 | 81 |
82 void SVGFEImageElement::requestImageResource() | 82 void SVGFEImageElement::requestImageResource() |
83 { | 83 { |
84 CachedResourceRequest request(ResourceRequest(ownerDocument()->completeURL(h
ref()))); | 84 CachedResourceRequest request(ResourceRequest(ownerDocument()->completeURL(h
ref())), localName()); |
85 request.setInitiator(this); | |
86 m_cachedImage = document()->cachedResourceLoader()->requestImage(request); | 85 m_cachedImage = document()->cachedResourceLoader()->requestImage(request); |
87 | 86 |
88 if (m_cachedImage) | 87 if (m_cachedImage) |
89 m_cachedImage->addClient(this); | 88 m_cachedImage->addClient(this); |
90 } | 89 } |
91 | 90 |
92 void SVGFEImageElement::buildPendingResource() | 91 void SVGFEImageElement::buildPendingResource() |
93 { | 92 { |
94 clearResourceReferences(); | 93 clearResourceReferences(); |
95 if (!inDocument()) | 94 if (!inDocument()) |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 } | 209 } |
211 | 210 |
212 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st | 211 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st |
213 { | 212 { |
214 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); | 213 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); |
215 | 214 |
216 addSubresourceURL(urls, document()->completeURL(href())); | 215 addSubresourceURL(urls, document()->completeURL(href())); |
217 } | 216 } |
218 | 217 |
219 } | 218 } |
OLD | NEW |