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

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

Issue 2436793002: Simplify SVGAnimated* initialization (Closed)
Patch Set: Created 4 years, 2 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 SVGNumber::create())), 54 SVGNumber::create())),
55 m_k2(SVGAnimatedNumber::create(this, 55 m_k2(SVGAnimatedNumber::create(this,
56 SVGNames::k2Attr, 56 SVGNames::k2Attr,
57 SVGNumber::create())), 57 SVGNumber::create())),
58 m_k3(SVGAnimatedNumber::create(this, 58 m_k3(SVGAnimatedNumber::create(this,
59 SVGNames::k3Attr, 59 SVGNames::k3Attr,
60 SVGNumber::create())), 60 SVGNumber::create())),
61 m_k4(SVGAnimatedNumber::create(this, 61 m_k4(SVGAnimatedNumber::create(this,
62 SVGNames::k4Attr, 62 SVGNames::k4Attr,
63 SVGNumber::create())), 63 SVGNumber::create())),
64 m_in1(SVGAnimatedString::create(this, 64 m_in1(SVGAnimatedString::create(this, SVGNames::inAttr)),
65 SVGNames::inAttr, 65 m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr)),
66 SVGString::create())),
67 m_in2(SVGAnimatedString::create(this,
68 SVGNames::in2Attr,
69 SVGString::create())),
70 m_svgOperator(SVGAnimatedEnumeration<CompositeOperationType>::create( 66 m_svgOperator(SVGAnimatedEnumeration<CompositeOperationType>::create(
71 this, 67 this,
72 SVGNames::operatorAttr, 68 SVGNames::operatorAttr,
73 FECOMPOSITE_OPERATOR_OVER)) { 69 FECOMPOSITE_OPERATOR_OVER)) {
74 addToPropertyMap(m_k1); 70 addToPropertyMap(m_k1);
75 addToPropertyMap(m_k2); 71 addToPropertyMap(m_k2);
76 addToPropertyMap(m_k3); 72 addToPropertyMap(m_k3);
77 addToPropertyMap(m_k4); 73 addToPropertyMap(m_k4);
78 addToPropertyMap(m_in1); 74 addToPropertyMap(m_in1);
79 addToPropertyMap(m_in2); 75 addToPropertyMap(m_in2);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 m_k1->currentValue()->value(), m_k2->currentValue()->value(), 139 m_k1->currentValue()->value(), m_k2->currentValue()->value(),
144 m_k3->currentValue()->value(), m_k4->currentValue()->value()); 140 m_k3->currentValue()->value(), m_k4->currentValue()->value());
145 FilterEffectVector& inputEffects = effect->inputEffects(); 141 FilterEffectVector& inputEffects = effect->inputEffects();
146 inputEffects.reserveCapacity(2); 142 inputEffects.reserveCapacity(2);
147 inputEffects.append(input1); 143 inputEffects.append(input1);
148 inputEffects.append(input2); 144 inputEffects.append(input2);
149 return effect; 145 return effect;
150 } 146 }
151 147
152 } // namespace blink 148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698