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

Unified Diff: Source/core/svg/SVGFETurbulenceElement.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/SVGFETurbulenceElement.cpp
diff --git a/Source/core/svg/SVGFETurbulenceElement.cpp b/Source/core/svg/SVGFETurbulenceElement.cpp
index 2aebbb600660aeac2f3d27d1a2af603b27e23e48..b7745e175bb6c3d4fbc9b27530028e40191ef37d 100644
--- a/Source/core/svg/SVGFETurbulenceElement.cpp
+++ b/Source/core/svg/SVGFETurbulenceElement.cpp
@@ -134,18 +134,18 @@ bool SVGFETurbulenceElement::setFilterEffectAttribute(FilterEffect* effect, cons
{
FETurbulence* turbulence = static_cast<FETurbulence*>(effect);
if (attrName == SVGNames::typeAttr)
- return turbulence->setType(type());
+ return turbulence->setType(typeCurrentValue());
if (attrName == SVGNames::stitchTilesAttr)
- return turbulence->setStitchTiles(stitchTiles());
+ return turbulence->setStitchTiles(stitchTilesCurrentValue());
if (attrName == SVGNames::baseFrequencyAttr) {
- bool baseFrequencyXChanged = turbulence->setBaseFrequencyX(baseFrequencyX());
- bool baseFrequencyYChanged = turbulence->setBaseFrequencyY(baseFrequencyY());
+ bool baseFrequencyXChanged = turbulence->setBaseFrequencyX(baseFrequencyXCurrentValue());
+ bool baseFrequencyYChanged = turbulence->setBaseFrequencyY(baseFrequencyYCurrentValue());
return (baseFrequencyXChanged || baseFrequencyYChanged);
}
if (attrName == SVGNames::seedAttr)
- return turbulence->setSeed(seed());
+ return turbulence->setSeed(seedCurrentValue());
if (attrName == SVGNames::numOctavesAttr)
- return turbulence->setNumOctaves(numOctaves());
+ return turbulence->setNumOctaves(numOctavesCurrentValue());
ASSERT_NOT_REACHED();
return false;
@@ -174,9 +174,9 @@ void SVGFETurbulenceElement::svgAttributeChanged(const QualifiedName& attrName)
PassRefPtr<FilterEffect> SVGFETurbulenceElement::build(SVGFilterBuilder*, Filter* filter)
{
- if (baseFrequencyX() < 0 || baseFrequencyY() < 0)
+ if (baseFrequencyXCurrentValue() < 0 || baseFrequencyYCurrentValue() < 0)
return 0;
- return FETurbulence::create(filter, type(), baseFrequencyX(), baseFrequencyY(), numOctaves(), seed(), stitchTiles() == SVG_STITCHTYPE_STITCH);
+ return FETurbulence::create(filter, typeCurrentValue(), baseFrequencyXCurrentValue(), baseFrequencyYCurrentValue(), numOctavesCurrentValue(), seedCurrentValue(), stitchTilesCurrentValue() == SVG_STITCHTYPE_STITCH);
}
}

Powered by Google App Engine
This is Rietveld 408576698