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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGFEColorMatrixElement.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 23 matching lines...) Expand all
34 entries.append(std::make_pair(FECOLORMATRIX_TYPE_HUEROTATE, "hueRotate")); 34 entries.append(std::make_pair(FECOLORMATRIX_TYPE_HUEROTATE, "hueRotate"));
35 entries.append(std::make_pair(FECOLORMATRIX_TYPE_LUMINANCETOALPHA, 35 entries.append(std::make_pair(FECOLORMATRIX_TYPE_LUMINANCETOALPHA,
36 "luminanceToAlpha")); 36 "luminanceToAlpha"));
37 } 37 }
38 return entries; 38 return entries;
39 } 39 }
40 40
41 inline SVGFEColorMatrixElement::SVGFEColorMatrixElement(Document& document) 41 inline SVGFEColorMatrixElement::SVGFEColorMatrixElement(Document& document)
42 : SVGFilterPrimitiveStandardAttributes(SVGNames::feColorMatrixTag, 42 : SVGFilterPrimitiveStandardAttributes(SVGNames::feColorMatrixTag,
43 document), 43 document),
44 m_values(SVGAnimatedNumberList::create(this, 44 m_values(SVGAnimatedNumberList::create(this, SVGNames::valuesAttr)),
45 SVGNames::valuesAttr, 45 m_in1(SVGAnimatedString::create(this, SVGNames::inAttr)),
46 SVGNumberList::create())),
47 m_in1(SVGAnimatedString::create(this,
48 SVGNames::inAttr,
49 SVGString::create())),
50 m_type(SVGAnimatedEnumeration<ColorMatrixType>::create( 46 m_type(SVGAnimatedEnumeration<ColorMatrixType>::create(
51 this, 47 this,
52 SVGNames::typeAttr, 48 SVGNames::typeAttr,
53 FECOLORMATRIX_TYPE_MATRIX)) { 49 FECOLORMATRIX_TYPE_MATRIX)) {
54 addToPropertyMap(m_values); 50 addToPropertyMap(m_values);
55 addToPropertyMap(m_in1); 51 addToPropertyMap(m_in1);
56 addToPropertyMap(m_type); 52 addToPropertyMap(m_type);
57 } 53 }
58 54
59 DEFINE_TRACE(SVGFEColorMatrixElement) { 55 DEFINE_TRACE(SVGFEColorMatrixElement) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 FEColorMatrix::create(filter, filterType, filterValues); 103 FEColorMatrix::create(filter, filterType, filterValues);
108 effect->inputEffects().append(input1); 104 effect->inputEffects().append(input1);
109 return effect; 105 return effect;
110 } 106 }
111 107
112 bool SVGFEColorMatrixElement::taintsOrigin(bool inputsTaintOrigin) const { 108 bool SVGFEColorMatrixElement::taintsOrigin(bool inputsTaintOrigin) const {
113 return inputsTaintOrigin; 109 return inputsTaintOrigin;
114 } 110 }
115 111
116 } // namespace blink 112 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698