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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 reportAttributeParsingError(parseError, name, value); | 140 reportAttributeParsingError(parseError, name, value); |
141 } | 141 } |
142 | 142 |
143 void SVGFEImageElement::svgAttributeChanged(const QualifiedName& attrName) | 143 void SVGFEImageElement::svgAttributeChanged(const QualifiedName& attrName) |
144 { | 144 { |
145 if (!isSupportedAttribute(attrName)) { | 145 if (!isSupportedAttribute(attrName)) { |
146 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 146 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
147 return; | 147 return; |
148 } | 148 } |
149 | 149 |
150 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 150 SVGElement::InvalidationGuard invalidationGuard(this); |
151 | 151 |
152 if (attrName == SVGNames::preserveAspectRatioAttr) { | 152 if (attrName == SVGNames::preserveAspectRatioAttr) { |
153 invalidate(); | 153 invalidate(); |
154 return; | 154 return; |
155 } | 155 } |
156 | 156 |
157 if (SVGURIReference::isKnownAttribute(attrName)) { | 157 if (SVGURIReference::isKnownAttribute(attrName)) { |
158 buildPendingResource(); | 158 buildPendingResource(); |
159 return; | 159 return; |
160 } | 160 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 192 } |
193 | 193 |
194 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil
ter) | 194 PassRefPtr<FilterEffect> SVGFEImageElement::build(SVGFilterBuilder*, Filter* fil
ter) |
195 { | 195 { |
196 if (m_cachedImage) | 196 if (m_cachedImage) |
197 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer(
renderer()), m_preserveAspectRatio->currentValue()); | 197 return FEImage::createWithImage(filter, m_cachedImage->imageForRenderer(
renderer()), m_preserveAspectRatio->currentValue()); |
198 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_
preserveAspectRatio->currentValue()); | 198 return FEImage::createWithIRIReference(filter, treeScope(), hrefString(), m_
preserveAspectRatio->currentValue()); |
199 } | 199 } |
200 | 200 |
201 } | 201 } |
OLD | NEW |