| 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 29 matching lines...) Expand all Loading... |
| 40 entries.append(std::make_pair(FECOMPONENTTRANSFER_TYPE_LINEAR, "linear")); | 40 entries.append(std::make_pair(FECOMPONENTTRANSFER_TYPE_LINEAR, "linear")); |
| 41 entries.append(std::make_pair(FECOMPONENTTRANSFER_TYPE_GAMMA, "gamma")); | 41 entries.append(std::make_pair(FECOMPONENTTRANSFER_TYPE_GAMMA, "gamma")); |
| 42 } | 42 } |
| 43 return entries; | 43 return entries; |
| 44 } | 44 } |
| 45 | 45 |
| 46 SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement( | 46 SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement( |
| 47 const QualifiedName& tagName, | 47 const QualifiedName& tagName, |
| 48 Document& document) | 48 Document& document) |
| 49 : SVGElement(tagName, document), | 49 : SVGElement(tagName, document), |
| 50 m_tableValues(SVGAnimatedNumberList::create(this, | 50 m_tableValues( |
| 51 SVGNames::tableValuesAttr, | 51 SVGAnimatedNumberList::create(this, SVGNames::tableValuesAttr)), |
| 52 SVGNumberList::create())), | |
| 53 m_slope(SVGAnimatedNumber::create(this, | 52 m_slope(SVGAnimatedNumber::create(this, |
| 54 SVGNames::slopeAttr, | 53 SVGNames::slopeAttr, |
| 55 SVGNumber::create(1))), | 54 SVGNumber::create(1))), |
| 56 m_intercept(SVGAnimatedNumber::create(this, | 55 m_intercept(SVGAnimatedNumber::create(this, |
| 57 SVGNames::interceptAttr, | 56 SVGNames::interceptAttr, |
| 58 SVGNumber::create())), | 57 SVGNumber::create())), |
| 59 m_amplitude(SVGAnimatedNumber::create(this, | 58 m_amplitude(SVGAnimatedNumber::create(this, |
| 60 SVGNames::amplitudeAttr, | 59 SVGNames::amplitudeAttr, |
| 61 SVGNumber::create(1))), | 60 SVGNumber::create(1))), |
| 62 m_exponent(SVGAnimatedNumber::create(this, | 61 m_exponent(SVGAnimatedNumber::create(this, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 func.slope = m_slope->currentValue()->value(); | 110 func.slope = m_slope->currentValue()->value(); |
| 112 func.intercept = m_intercept->currentValue()->value(); | 111 func.intercept = m_intercept->currentValue()->value(); |
| 113 func.amplitude = m_amplitude->currentValue()->value(); | 112 func.amplitude = m_amplitude->currentValue()->value(); |
| 114 func.exponent = m_exponent->currentValue()->value(); | 113 func.exponent = m_exponent->currentValue()->value(); |
| 115 func.offset = m_offset->currentValue()->value(); | 114 func.offset = m_offset->currentValue()->value(); |
| 116 func.tableValues = m_tableValues->currentValue()->toFloatVector(); | 115 func.tableValues = m_tableValues->currentValue()->toFloatVector(); |
| 117 return func; | 116 return func; |
| 118 } | 117 } |
| 119 | 118 |
| 120 } // namespace blink | 119 } // namespace blink |
| OLD | NEW |