| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67 bool SVGFEDisplacementMapElement::setFilterEffectAttribute(FilterEffect* effect,
      const QualifiedName& attrName) | 67 bool SVGFEDisplacementMapElement::setFilterEffectAttribute(FilterEffect* effect,
      const QualifiedName& attrName) | 
| 68 { | 68 { | 
| 69     FEDisplacementMap* displacementMap = static_cast<FEDisplacementMap*>(effect)
     ; | 69     FEDisplacementMap* displacementMap = static_cast<FEDisplacementMap*>(effect)
     ; | 
| 70     if (attrName == SVGNames::xChannelSelectorAttr) | 70     if (attrName == SVGNames::xChannelSelectorAttr) | 
| 71         return displacementMap->setXChannelSelector(m_xChannelSelector->currentV
     alue()->enumValue()); | 71         return displacementMap->setXChannelSelector(m_xChannelSelector->currentV
     alue()->enumValue()); | 
| 72     if (attrName == SVGNames::yChannelSelectorAttr) | 72     if (attrName == SVGNames::yChannelSelectorAttr) | 
| 73         return displacementMap->setYChannelSelector(m_yChannelSelector->currentV
     alue()->enumValue()); | 73         return displacementMap->setYChannelSelector(m_yChannelSelector->currentV
     alue()->enumValue()); | 
| 74     if (attrName == SVGNames::scaleAttr) | 74     if (attrName == SVGNames::scaleAttr) | 
| 75         return displacementMap->setScale(m_scale->currentValue()->value()); | 75         return displacementMap->setScale(m_scale->currentValue()->value()); | 
| 76 | 76 | 
| 77     ASSERT_NOT_REACHED(); | 77     return SVGFilterPrimitiveStandardAttributes::setFilterEffectAttribute(effect
     , attrName); | 
| 78     return false; |  | 
| 79 } | 78 } | 
| 80 | 79 | 
| 81 void SVGFEDisplacementMapElement::svgAttributeChanged(const QualifiedName& attrN
     ame) | 80 void SVGFEDisplacementMapElement::svgAttributeChanged(const QualifiedName& attrN
     ame) | 
| 82 { | 81 { | 
| 83     if (attrName == SVGNames::xChannelSelectorAttr || attrName == SVGNames::yCha
     nnelSelectorAttr || attrName == SVGNames::scaleAttr) { | 82     if (attrName == SVGNames::xChannelSelectorAttr || attrName == SVGNames::yCha
     nnelSelectorAttr || attrName == SVGNames::scaleAttr) { | 
| 84         SVGElement::InvalidationGuard invalidationGuard(this); | 83         SVGElement::InvalidationGuard invalidationGuard(this); | 
| 85         primitiveAttributeChanged(attrName); | 84         primitiveAttributeChanged(attrName); | 
| 86         return; | 85         return; | 
| 87     } | 86     } | 
| 88 | 87 | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 103 | 102 | 
| 104     FilterEffect* effect = FEDisplacementMap::create(filter, m_xChannelSelector-
     >currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m
     _scale->currentValue()->value()); | 103     FilterEffect* effect = FEDisplacementMap::create(filter, m_xChannelSelector-
     >currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m
     _scale->currentValue()->value()); | 
| 105     FilterEffectVector& inputEffects = effect->inputEffects(); | 104     FilterEffectVector& inputEffects = effect->inputEffects(); | 
| 106     inputEffects.reserveCapacity(2); | 105     inputEffects.reserveCapacity(2); | 
| 107     inputEffects.append(input1); | 106     inputEffects.append(input1); | 
| 108     inputEffects.append(input2); | 107     inputEffects.append(input2); | 
| 109     return effect; | 108     return effect; | 
| 110 } | 109 } | 
| 111 | 110 | 
| 112 } // namespace blink | 111 } // namespace blink | 
| OLD | NEW | 
|---|