| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 if (attrName == SVGNames::inAttr) { | 150 if (attrName == SVGNames::inAttr) { |
| 151 invalidate(); | 151 invalidate(); |
| 152 return; | 152 return; |
| 153 } | 153 } |
| 154 | 154 |
| 155 ASSERT_NOT_REACHED(); | 155 ASSERT_NOT_REACHED(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterB
uilder, Filter* filter) | 158 PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterB
uilder, Filter* filter) |
| 159 { | 159 { |
| 160 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue()); | 160 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(in1CurrentV
alue())); |
| 161 float xRadius = radiusXCurrentValue(); | 161 float xRadius = radiusXCurrentValue(); |
| 162 float yRadius = radiusYCurrentValue(); | 162 float yRadius = radiusYCurrentValue(); |
| 163 | 163 |
| 164 if (!input1) | 164 if (!input1) |
| 165 return 0; | 165 return 0; |
| 166 | 166 |
| 167 if (xRadius < 0 || yRadius < 0) | 167 if (xRadius < 0 || yRadius < 0) |
| 168 return 0; | 168 return 0; |
| 169 | 169 |
| 170 RefPtr<FilterEffect> effect = FEMorphology::create(filter, svgOperatorCurren
tValue(), xRadius, yRadius); | 170 RefPtr<FilterEffect> effect = FEMorphology::create(filter, svgOperatorCurren
tValue(), xRadius, yRadius); |
| 171 effect->inputEffects().append(input1); | 171 effect->inputEffects().append(input1); |
| 172 return effect.release(); | 172 return effect.release(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace WebCore | 175 } // namespace WebCore |
| OLD | NEW |