| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "SVGNames.h" | 25 #include "SVGNames.h" |
| 26 #include "platform/graphics/filters/FilterEffect.h" | 26 #include "platform/graphics/filters/FilterEffect.h" |
| 27 #include "core/svg/SVGElementInstance.h" | 27 #include "core/svg/SVGElementInstance.h" |
| 28 #include "core/svg/SVGParserUtilities.h" | 28 #include "core/svg/SVGParserUtilities.h" |
| 29 #include "core/svg/graphics/filters/SVGFilterBuilder.h" | 29 #include "core/svg/graphics/filters/SVGFilterBuilder.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 // Animated property definitions | 33 // Animated property definitions |
| 34 | 34 |
| 35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEGaussianBlurElement) | |
| 36 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | |
| 37 END_REGISTER_ANIMATED_PROPERTIES | |
| 38 | 35 |
| 39 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(Document& document) | 36 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(Document& document) |
| 40 : SVGFilterPrimitiveStandardAttributes(SVGNames::feGaussianBlurTag, document
) | 37 : SVGFilterPrimitiveStandardAttributes(SVGNames::feGaussianBlurTag, document
) |
| 41 , m_stdDeviation(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::std
DeviationAttr, 0, 0)) | 38 , m_stdDeviation(SVGAnimatedNumberOptionalNumber::create(this, SVGNames::std
DeviationAttr, 0, 0)) |
| 42 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 39 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
| 43 { | 40 { |
| 44 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
| 45 | 42 |
| 46 addToPropertyMap(m_stdDeviation); | 43 addToPropertyMap(m_stdDeviation); |
| 47 addToPropertyMap(m_in1); | 44 addToPropertyMap(m_in1); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 111 |
| 115 if (stdDeviationX()->currentValue()->value() < 0 || stdDeviationY()->current
Value()->value() < 0) | 112 if (stdDeviationX()->currentValue()->value() < 0 || stdDeviationY()->current
Value()->value() < 0) |
| 116 return nullptr; | 113 return nullptr; |
| 117 | 114 |
| 118 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationX()
->currentValue()->value(), stdDeviationY()->currentValue()->value()); | 115 RefPtr<FilterEffect> effect = FEGaussianBlur::create(filter, stdDeviationX()
->currentValue()->value(), stdDeviationY()->currentValue()->value()); |
| 119 effect->inputEffects().append(input1); | 116 effect->inputEffects().append(input1); |
| 120 return effect.release(); | 117 return effect.release(); |
| 121 } | 118 } |
| 122 | 119 |
| 123 } | 120 } |
| OLD | NEW |