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

Side by Side Diff: Source/core/svg/SVGComponentTransferFunctionElement.cpp

Issue 177803003: [SVG] Make all C-macros used in the old property implementation NOOP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: styles Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGCursorElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGClipPathElement.cpp ('k') | Source/core/svg/SVGCursorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698