| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 reportAttributeParsingError(parseError, name, value); | 92 reportAttributeParsingError(parseError, name, value); |
| 93 } | 93 } |
| 94 | 94 |
| 95 void SVGFEDropShadowElement::svgAttributeChanged(const QualifiedName& attrName) | 95 void SVGFEDropShadowElement::svgAttributeChanged(const QualifiedName& attrName) |
| 96 { | 96 { |
| 97 if (!isSupportedAttribute(attrName)) { | 97 if (!isSupportedAttribute(attrName)) { |
| 98 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 98 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
| 99 return; | 99 return; |
| 100 } | 100 } |
| 101 | 101 |
| 102 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 102 SVGElement::InvalidationGuard invalidationGuard(this); |
| 103 | 103 |
| 104 if (attrName == SVGNames::inAttr | 104 if (attrName == SVGNames::inAttr |
| 105 || attrName == SVGNames::stdDeviationAttr | 105 || attrName == SVGNames::stdDeviationAttr |
| 106 || attrName == SVGNames::dxAttr | 106 || attrName == SVGNames::dxAttr |
| 107 || attrName == SVGNames::dyAttr) { | 107 || attrName == SVGNames::dyAttr) { |
| 108 invalidate(); | 108 invalidate(); |
| 109 return; | 109 return; |
| 110 } | 110 } |
| 111 | 111 |
| 112 ASSERT_NOT_REACHED(); | 112 ASSERT_NOT_REACHED(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 130 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); | 130 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); |
| 131 if (!input1) | 131 if (!input1) |
| 132 return nullptr; | 132 return nullptr; |
| 133 | 133 |
| 134 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX()->
currentValue()->value(), stdDeviationY()->currentValue()->value(), m_dx->current
Value()->value(), m_dy->currentValue()->value(), color, opacity); | 134 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX()->
currentValue()->value(), stdDeviationY()->currentValue()->value(), m_dx->current
Value()->value(), m_dy->currentValue()->value(), color, opacity); |
| 135 effect->inputEffects().append(input1); | 135 effect->inputEffects().append(input1); |
| 136 return effect.release(); | 136 return effect.release(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } | 139 } |
| OLD | NEW |