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

Unified Diff: Source/core/svg/SVGFEDisplacementMapElement.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/SVGFEDisplacementMapElement.cpp
diff --git a/Source/core/svg/SVGFEDisplacementMapElement.cpp b/Source/core/svg/SVGFEDisplacementMapElement.cpp
index 340b180925f3d84b955bd91afb8db091ac7b0b82..172197a2bd65587fa57bcf7ae78dd4e4416d01ae 100644
--- a/Source/core/svg/SVGFEDisplacementMapElement.cpp
+++ b/Source/core/svg/SVGFEDisplacementMapElement.cpp
@@ -115,11 +115,11 @@ bool SVGFEDisplacementMapElement::setFilterEffectAttribute(FilterEffect* effect,
{
FEDisplacementMap* displacementMap = static_cast<FEDisplacementMap*>(effect);
if (attrName == SVGNames::xChannelSelectorAttr)
- return displacementMap->setXChannelSelector(xChannelSelector());
+ return displacementMap->setXChannelSelector(xChannelSelectorCurrentValue());
if (attrName == SVGNames::yChannelSelectorAttr)
- return displacementMap->setYChannelSelector(yChannelSelector());
+ return displacementMap->setYChannelSelector(yChannelSelectorCurrentValue());
if (attrName == SVGNames::scaleAttr)
- return displacementMap->setScale(scale());
+ return displacementMap->setScale(scaleCurrentValue());
ASSERT_NOT_REACHED();
return false;
@@ -149,13 +149,13 @@ void SVGFEDisplacementMapElement::svgAttributeChanged(const QualifiedName& attrN
PassRefPtr<FilterEffect> SVGFEDisplacementMapElement::build(SVGFilterBuilder* filterBuilder, Filter* filter)
{
- FilterEffect* input1 = filterBuilder->getEffectById(in1());
- FilterEffect* input2 = filterBuilder->getEffectById(in2());
+ FilterEffect* input1 = filterBuilder->getEffectById(in1CurrentValue());
+ FilterEffect* input2 = filterBuilder->getEffectById(in2CurrentValue());
if (!input1 || !input2)
return 0;
- RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, xChannelSelector(), yChannelSelector(), scale());
+ RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, xChannelSelectorCurrentValue(), yChannelSelectorCurrentValue(), scaleCurrentValue());
FilterEffectVector& inputEffects = effect->inputEffects();
inputEffects.reserveCapacity(2);
inputEffects.append(input1);

Powered by Google App Engine
This is Rietveld 408576698