| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 { | 192 { |
| 193 if (!inDocument()) | 193 if (!inDocument()) |
| 194 return; | 194 return; |
| 195 | 195 |
| 196 Element* parent = parentElement(); | 196 Element* parent = parentElement(); |
| 197 ASSERT(parent); | 197 ASSERT(parent); |
| 198 | 198 |
| 199 if (!parent->hasTagName(SVGNames::filterTag) || !parent->renderer()) | 199 if (!parent->hasTagName(SVGNames::filterTag) || !parent->renderer()) |
| 200 return; | 200 return; |
| 201 | 201 |
| 202 RenderSVGResource::markForLayoutAndParentResourceInvalidation(parent->render
er()); | 202 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer()); |
| 203 } | 203 } |
| 204 | 204 |
| 205 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil
ter) | 205 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil
ter) |
| 206 { | 206 { |
| 207 if (m_cachedImage) | 207 if (m_cachedImage) |
| 208 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer(
renderer()), preserveAspectRatio()); | 208 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer(
renderer()), preserveAspectRatio()); |
| 209 return FEImage::createWithIRIReference(filter, document(), href(), preserveA
spectRatio()); | 209 return FEImage::createWithIRIReference(filter, document(), href(), preserveA
spectRatio()); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st | 212 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con
st |
| 213 { | 213 { |
| 214 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); | 214 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); |
| 215 | 215 |
| 216 addSubresourceURL(urls, document()->completeURL(href())); | 216 addSubresourceURL(urls, document()->completeURL(href())); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } | 219 } |
| OLD | NEW |