| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return false; | 112 return false; |
| 113 } | 113 } |
| 114 | 114 |
| 115 void SVGFEMorphologyElement::svgAttributeChanged(const QualifiedName& attrName) | 115 void SVGFEMorphologyElement::svgAttributeChanged(const QualifiedName& attrName) |
| 116 { | 116 { |
| 117 if (!isSupportedAttribute(attrName)) { | 117 if (!isSupportedAttribute(attrName)) { |
| 118 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 118 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
| 119 return; | 119 return; |
| 120 } | 120 } |
| 121 | 121 |
| 122 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 122 SVGElement::InvalidationGuard invalidationGuard(this); |
| 123 | 123 |
| 124 if (attrName == SVGNames::operatorAttr || attrName == SVGNames::radiusAttr)
{ | 124 if (attrName == SVGNames::operatorAttr || attrName == SVGNames::radiusAttr)
{ |
| 125 primitiveAttributeChanged(attrName); | 125 primitiveAttributeChanged(attrName); |
| 126 return; | 126 return; |
| 127 } | 127 } |
| 128 | 128 |
| 129 if (attrName == SVGNames::inAttr) { | 129 if (attrName == SVGNames::inAttr) { |
| 130 invalidate(); | 130 invalidate(); |
| 131 return; | 131 return; |
| 132 } | 132 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 145 | 145 |
| 146 if (xRadius < 0 || yRadius < 0) | 146 if (xRadius < 0 || yRadius < 0) |
| 147 return nullptr; | 147 return nullptr; |
| 148 | 148 |
| 149 RefPtr<FilterEffect> effect = FEMorphology::create(filter, m_svgOperator->cu
rrentValue()->enumValue(), xRadius, yRadius); | 149 RefPtr<FilterEffect> effect = FEMorphology::create(filter, m_svgOperator->cu
rrentValue()->enumValue(), xRadius, yRadius); |
| 150 effect->inputEffects().append(input1); | 150 effect->inputEffects().append(input1); |
| 151 return effect.release(); | 151 return effect.release(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace WebCore | 154 } // namespace WebCore |
| OLD | NEW |