Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1036)

Unified Diff: Source/core/svg/SVGFEMorphologyElement.cpp

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGFEMorphologyElement.cpp
diff --git a/Source/core/svg/SVGFEMorphologyElement.cpp b/Source/core/svg/SVGFEMorphologyElement.cpp
index 4718315984019b291c5e7b1fa025fdf60ea387e8..e8e24890a3ee65b494f993cbeb1749a13824b460 100644
--- a/Source/core/svg/SVGFEMorphologyElement.cpp
+++ b/Source/core/svg/SVGFEMorphologyElement.cpp
@@ -122,11 +122,11 @@ bool SVGFEMorphologyElement::setFilterEffectAttribute(FilterEffect* effect, cons
{
FEMorphology* morphology = static_cast<FEMorphology*>(effect);
if (attrName == SVGNames::operatorAttr)
- return morphology->setMorphologyOperator(_operator());
+ return morphology->setMorphologyOperator(_operatorCurrentValue());
if (attrName == SVGNames::radiusAttr) {
// Both setRadius functions should be evaluated separately.
- bool isRadiusXChanged = morphology->setRadiusX(radiusX());
- bool isRadiusYChanged = morphology->setRadiusY(radiusY());
+ bool isRadiusXChanged = morphology->setRadiusX(radiusXCurrentValue());
+ bool isRadiusYChanged = morphology->setRadiusY(radiusYCurrentValue());
return isRadiusXChanged || isRadiusYChanged;
}
@@ -158,9 +158,9 @@ void SVGFEMorphologyElement::svgAttributeChanged(const QualifiedName& attrName)
PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
{
- FilterEffect* input1 = filterBuilder->getEffectById(in1());
- float xRadius = radiusX();
- float yRadius = radiusY();
+ FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue());
+ float xRadius = radiusXCurrentValue();
+ float yRadius = radiusYCurrentValue();
if (!input1)
return 0;
@@ -168,7 +168,7 @@ PassRefPtr<FilterEffect> SVGFEMorphologyElement::build(SVGFilterBuilder* filterB
if (xRadius < 0 || yRadius < 0)
return 0;
- RefPtr<FilterEffect> effect = FEMorphology::create(filter, _operator(), xRadius, yRadius);
+ RefPtr<FilterEffect> effect = FEMorphology::create(filter, _operatorCurrentValue(), xRadius, yRadius);
effect->inputEffects().append(input1);
return effect.release();
}

Powered by Google App Engine
This is Rietveld 408576698