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

Unified Diff: Source/core/svg/SVGFEBlendElement.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/SVGFEBlendElement.cpp
diff --git a/Source/core/svg/SVGFEBlendElement.cpp b/Source/core/svg/SVGFEBlendElement.cpp
index ab5d37acc4e427d57d2561535628d72593269b58..d118b637b3e9e34a46298295e1382859a9de8332 100644
--- a/Source/core/svg/SVGFEBlendElement.cpp
+++ b/Source/core/svg/SVGFEBlendElement.cpp
@@ -97,7 +97,7 @@ bool SVGFEBlendElement::setFilterEffectAttribute(FilterEffect* effect, const Qua
{
FEBlend* blend = static_cast<FEBlend*>(effect);
if (attrName == SVGNames::modeAttr)
- return blend->setBlendMode(mode());
+ return blend->setBlendMode(modeCurrentValue());
ASSERT_NOT_REACHED();
return false;
@@ -127,13 +127,13 @@ void SVGFEBlendElement::svgAttributeChanged(const QualifiedName& attrName)
PassRefPtr<FilterEffect> SVGFEBlendElement::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 = FEBlend::create(filter, mode());
+ RefPtr<FilterEffect> effect = FEBlend::create(filter, modeCurrentValue());
FilterEffectVector& inputEffects = effect->inputEffects();
inputEffects.reserveCapacity(2);
inputEffects.append(input1);

Powered by Google App Engine
This is Rietveld 408576698