OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |