| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0) | 156 if (stdDeviationXCurrentValue() < 0 || stdDeviationYCurrentValue() < 0) |
| 157 return 0; | 157 return 0; |
| 158 | 158 |
| 159 ASSERT(renderer->style()); | 159 ASSERT(renderer->style()); |
| 160 const SVGRenderStyle* svgStyle = renderer->style()->svgStyle(); | 160 const SVGRenderStyle* svgStyle = renderer->style()->svgStyle(); |
| 161 | 161 |
| 162 Color color = svgStyle->floodColor(); | 162 Color color = svgStyle->floodColor(); |
| 163 float opacity = svgStyle->floodOpacity(); | 163 float opacity = svgStyle->floodOpacity(); |
| 164 | 164 |
| 165 FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue()); | 165 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(in1CurrentV
alue())); |
| 166 if (!input1) | 166 if (!input1) |
| 167 return 0; | 167 return 0; |
| 168 | 168 |
| 169 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationXCurr
entValue(), stdDeviationYCurrentValue(), dxCurrentValue(), dyCurrentValue(), col
or, opacity); | 169 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationXCurr
entValue(), stdDeviationYCurrentValue(), dxCurrentValue(), dyCurrentValue(), col
or, opacity); |
| 170 effect->inputEffects().append(input1); | 170 effect->inputEffects().append(input1); |
| 171 return effect.release(); | 171 return effect.release(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } | 174 } |
| OLD | NEW |