| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com> | 2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 return false; | 114 return false; |
| 115 } | 115 } |
| 116 | 116 |
| 117 void SVGFEDisplacementMapElement::svgAttributeChanged(const QualifiedName& attrN
ame) | 117 void SVGFEDisplacementMapElement::svgAttributeChanged(const QualifiedName& attrN
ame) |
| 118 { | 118 { |
| 119 if (!isSupportedAttribute(attrName)) { | 119 if (!isSupportedAttribute(attrName)) { |
| 120 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 120 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
| 121 return; | 121 return; |
| 122 } | 122 } |
| 123 | 123 |
| 124 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 124 SVGElement::InstanceInvalidationGuard invalidationGuard(this); |
| 125 | 125 |
| 126 if (attrName == SVGNames::xChannelSelectorAttr || attrName == SVGNames::yCha
nnelSelectorAttr || attrName == SVGNames::scaleAttr) { | 126 if (attrName == SVGNames::xChannelSelectorAttr || attrName == SVGNames::yCha
nnelSelectorAttr || attrName == SVGNames::scaleAttr) { |
| 127 primitiveAttributeChanged(attrName); | 127 primitiveAttributeChanged(attrName); |
| 128 return; | 128 return; |
| 129 } | 129 } |
| 130 | 130 |
| 131 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { | 131 if (attrName == SVGNames::inAttr || attrName == SVGNames::in2Attr) { |
| 132 invalidate(); | 132 invalidate(); |
| 133 return; | 133 return; |
| 134 } | 134 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 146 | 146 |
| 147 RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSe
lector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumVal
ue(), m_scale->currentValue()->value()); | 147 RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSe
lector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumVal
ue(), m_scale->currentValue()->value()); |
| 148 FilterEffectVector& inputEffects = effect->inputEffects(); | 148 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 149 inputEffects.reserveCapacity(2); | 149 inputEffects.reserveCapacity(2); |
| 150 inputEffects.append(input1); | 150 inputEffects.append(input1); |
| 151 inputEffects.append(input2); | 151 inputEffects.append(input2); |
| 152 return effect.release(); | 152 return effect.release(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } | 155 } |
| OLD | NEW |