| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 { | 61 { |
| 62 ScriptWrappable::init(this); | 62 ScriptWrappable::init(this); |
| 63 | 63 |
| 64 addToPropertyMap(m_tableValues); | 64 addToPropertyMap(m_tableValues); |
| 65 addToPropertyMap(m_slope); | 65 addToPropertyMap(m_slope); |
| 66 addToPropertyMap(m_intercept); | 66 addToPropertyMap(m_intercept); |
| 67 addToPropertyMap(m_amplitude); | 67 addToPropertyMap(m_amplitude); |
| 68 addToPropertyMap(m_exponent); | 68 addToPropertyMap(m_exponent); |
| 69 addToPropertyMap(m_offset); | 69 addToPropertyMap(m_offset); |
| 70 addToPropertyMap(m_type); | 70 addToPropertyMap(m_type); |
| 71 registerAnimatedPropertiesForSVGComponentTransferFunctionElement(); | |
| 72 } | 71 } |
| 73 | 72 |
| 74 bool SVGComponentTransferFunctionElement::isSupportedAttribute(const QualifiedNa
me& attrName) | 73 bool SVGComponentTransferFunctionElement::isSupportedAttribute(const QualifiedNa
me& attrName) |
| 75 { | 74 { |
| 76 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 75 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 77 if (supportedAttributes.isEmpty()) { | 76 if (supportedAttributes.isEmpty()) { |
| 78 supportedAttributes.add(SVGNames::typeAttr); | 77 supportedAttributes.add(SVGNames::typeAttr); |
| 79 supportedAttributes.add(SVGNames::tableValuesAttr); | 78 supportedAttributes.add(SVGNames::tableValuesAttr); |
| 80 supportedAttributes.add(SVGNames::slopeAttr); | 79 supportedAttributes.add(SVGNames::slopeAttr); |
| 81 supportedAttributes.add(SVGNames::interceptAttr); | 80 supportedAttributes.add(SVGNames::interceptAttr); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 func.slope = m_slope->currentValue()->value(); | 131 func.slope = m_slope->currentValue()->value(); |
| 133 func.intercept = m_intercept->currentValue()->value(); | 132 func.intercept = m_intercept->currentValue()->value(); |
| 134 func.amplitude = m_amplitude->currentValue()->value(); | 133 func.amplitude = m_amplitude->currentValue()->value(); |
| 135 func.exponent = m_exponent->currentValue()->value(); | 134 func.exponent = m_exponent->currentValue()->value(); |
| 136 func.offset = m_offset->currentValue()->value(); | 135 func.offset = m_offset->currentValue()->value(); |
| 137 func.tableValues = m_tableValues->currentValue()->toFloatVector(); | 136 func.tableValues = m_tableValues->currentValue()->toFloatVector(); |
| 138 return func; | 137 return func; |
| 139 } | 138 } |
| 140 | 139 |
| 141 } | 140 } |
| OLD | NEW |