| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 54 { | 54 { | 
| 55     addToPropertyMap(m_tableValues); | 55     addToPropertyMap(m_tableValues); | 
| 56     addToPropertyMap(m_slope); | 56     addToPropertyMap(m_slope); | 
| 57     addToPropertyMap(m_intercept); | 57     addToPropertyMap(m_intercept); | 
| 58     addToPropertyMap(m_amplitude); | 58     addToPropertyMap(m_amplitude); | 
| 59     addToPropertyMap(m_exponent); | 59     addToPropertyMap(m_exponent); | 
| 60     addToPropertyMap(m_offset); | 60     addToPropertyMap(m_offset); | 
| 61     addToPropertyMap(m_type); | 61     addToPropertyMap(m_type); | 
| 62 } | 62 } | 
| 63 | 63 | 
|  | 64 void SVGComponentTransferFunctionElement::trace(Visitor* visitor) | 
|  | 65 { | 
|  | 66     visitor->trace(m_tableValues); | 
|  | 67     visitor->trace(m_slope); | 
|  | 68     visitor->trace(m_intercept); | 
|  | 69     visitor->trace(m_amplitude); | 
|  | 70     visitor->trace(m_exponent); | 
|  | 71     visitor->trace(m_offset); | 
|  | 72     visitor->trace(m_type); | 
|  | 73     SVGElement::trace(visitor); | 
|  | 74 } | 
|  | 75 | 
| 64 bool SVGComponentTransferFunctionElement::isSupportedAttribute(const QualifiedNa
     me& attrName) | 76 bool SVGComponentTransferFunctionElement::isSupportedAttribute(const QualifiedNa
     me& attrName) | 
| 65 { | 77 { | 
| 66     DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 78     DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 
| 67     if (supportedAttributes.isEmpty()) { | 79     if (supportedAttributes.isEmpty()) { | 
| 68         supportedAttributes.add(SVGNames::typeAttr); | 80         supportedAttributes.add(SVGNames::typeAttr); | 
| 69         supportedAttributes.add(SVGNames::tableValuesAttr); | 81         supportedAttributes.add(SVGNames::tableValuesAttr); | 
| 70         supportedAttributes.add(SVGNames::slopeAttr); | 82         supportedAttributes.add(SVGNames::slopeAttr); | 
| 71         supportedAttributes.add(SVGNames::interceptAttr); | 83         supportedAttributes.add(SVGNames::interceptAttr); | 
| 72         supportedAttributes.add(SVGNames::amplitudeAttr); | 84         supportedAttributes.add(SVGNames::amplitudeAttr); | 
| 73         supportedAttributes.add(SVGNames::exponentAttr); | 85         supportedAttributes.add(SVGNames::exponentAttr); | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
| 100     func.slope = m_slope->currentValue()->value(); | 112     func.slope = m_slope->currentValue()->value(); | 
| 101     func.intercept = m_intercept->currentValue()->value(); | 113     func.intercept = m_intercept->currentValue()->value(); | 
| 102     func.amplitude = m_amplitude->currentValue()->value(); | 114     func.amplitude = m_amplitude->currentValue()->value(); | 
| 103     func.exponent = m_exponent->currentValue()->value(); | 115     func.exponent = m_exponent->currentValue()->value(); | 
| 104     func.offset = m_offset->currentValue()->value(); | 116     func.offset = m_offset->currentValue()->value(); | 
| 105     func.tableValues = m_tableValues->currentValue()->toFloatVector(); | 117     func.tableValues = m_tableValues->currentValue()->toFloatVector(); | 
| 106     return func; | 118     return func; | 
| 107 } | 119 } | 
| 108 | 120 | 
| 109 } // namespace blink | 121 } // namespace blink | 
| OLD | NEW | 
|---|