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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGFECompositeElement.cpp

Issue 2128193004: Update FilterEffect colorspace on color-interpolation-filters changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return composite->setOperation(m_svgOperator->currentValue()->enumValue( )); 86 return composite->setOperation(m_svgOperator->currentValue()->enumValue( ));
87 if (attrName == SVGNames::k1Attr) 87 if (attrName == SVGNames::k1Attr)
88 return composite->setK1(m_k1->currentValue()->value()); 88 return composite->setK1(m_k1->currentValue()->value());
89 if (attrName == SVGNames::k2Attr) 89 if (attrName == SVGNames::k2Attr)
90 return composite->setK2(m_k2->currentValue()->value()); 90 return composite->setK2(m_k2->currentValue()->value());
91 if (attrName == SVGNames::k3Attr) 91 if (attrName == SVGNames::k3Attr)
92 return composite->setK3(m_k3->currentValue()->value()); 92 return composite->setK3(m_k3->currentValue()->value());
93 if (attrName == SVGNames::k4Attr) 93 if (attrName == SVGNames::k4Attr)
94 return composite->setK4(m_k4->currentValue()->value()); 94 return composite->setK4(m_k4->currentValue()->value());
95 95
96 ASSERT_NOT_REACHED(); 96 return SVGFilterPrimitiveStandardAttributes::setFilterEffectAttribute(effect , attrName);
97 return false;
98 } 97 }
99 98
100 99
101 void SVGFECompositeElement::svgAttributeChanged(const QualifiedName& attrName) 100 void SVGFECompositeElement::svgAttributeChanged(const QualifiedName& attrName)
102 { 101 {
103 if (attrName == SVGNames::operatorAttr 102 if (attrName == SVGNames::operatorAttr
104 || attrName == SVGNames::k1Attr 103 || attrName == SVGNames::k1Attr
105 || attrName == SVGNames::k2Attr 104 || attrName == SVGNames::k2Attr
106 || attrName == SVGNames::k3Attr 105 || attrName == SVGNames::k3Attr
107 || attrName == SVGNames::k4Attr) { 106 || attrName == SVGNames::k4Attr) {
(...skipping 19 matching lines...) Expand all
127 126
128 FilterEffect* effect = FEComposite::create(filter, m_svgOperator->currentVal ue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->value(), m_k3->currentValue()->value(), m_k4->currentValue()->value()); 127 FilterEffect* effect = FEComposite::create(filter, m_svgOperator->currentVal ue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->value(), m_k3->currentValue()->value(), m_k4->currentValue()->value());
129 FilterEffectVector& inputEffects = effect->inputEffects(); 128 FilterEffectVector& inputEffects = effect->inputEffects();
130 inputEffects.reserveCapacity(2); 129 inputEffects.reserveCapacity(2);
131 inputEffects.append(input1); 130 inputEffects.append(input1);
132 inputEffects.append(input2); 131 inputEffects.append(input2);
133 return effect; 132 return effect;
134 } 133 }
135 134
136 } // namespace blink 135 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698