| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 , m_dy(SVGAnimatedNumber::create(this, SVGNames::dyAttr, SVGNumber::create(2
))) | 42 , m_dy(SVGAnimatedNumber::create(this, SVGNames::dyAttr, SVGNumber::create(2
))) |
| 43 , m_stdDeviation(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::std
DeviationAttr, 2, 2)) | 43 , m_stdDeviation(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::std
DeviationAttr, 2, 2)) |
| 44 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 44 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
| 45 { | 45 { |
| 46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
| 47 | 47 |
| 48 addToPropertyMap(m_dx); | 48 addToPropertyMap(m_dx); |
| 49 addToPropertyMap(m_dy); | 49 addToPropertyMap(m_dy); |
| 50 addToPropertyMap(m_stdDeviation); | 50 addToPropertyMap(m_stdDeviation); |
| 51 addToPropertyMap(m_in1); | 51 addToPropertyMap(m_in1); |
| 52 registerAnimatedPropertiesForSVGFEDropShadowElement(); | |
| 53 } | 52 } |
| 54 | 53 |
| 55 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(Document& docu
ment) | 54 PassRefPtr<SVGFEDropShadowElement> SVGFEDropShadowElement::create(Document& docu
ment) |
| 56 { | 55 { |
| 57 return adoptRef(new SVGFEDropShadowElement(document)); | 56 return adoptRef(new SVGFEDropShadowElement(document)); |
| 58 } | 57 } |
| 59 | 58 |
| 60 void SVGFEDropShadowElement::setStdDeviation(float x, float y) | 59 void SVGFEDropShadowElement::setStdDeviation(float x, float y) |
| 61 { | 60 { |
| 62 stdDeviationX()->baseValue()->setValue(x); | 61 stdDeviationX()->baseValue()->setValue(x); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); | 136 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); |
| 138 if (!input1) | 137 if (!input1) |
| 139 return nullptr; | 138 return nullptr; |
| 140 | 139 |
| 141 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX()->
currentValue()->value(), stdDeviationY()->currentValue()->value(), m_dx->current
Value()->value(), m_dy->currentValue()->value(), color, opacity); | 140 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX()->
currentValue()->value(), stdDeviationY()->currentValue()->value(), m_dx->current
Value()->value(), m_dy->currentValue()->value(), color, opacity); |
| 142 effect->inputEffects().append(input1); | 141 effect->inputEffects().append(input1); |
| 143 return effect.release(); | 142 return effect.release(); |
| 144 } | 143 } |
| 145 | 144 |
| 146 } | 145 } |
| OLD | NEW |