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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(const Q ualifiedName& tagName, Document& document) 45 SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(const Q ualifiedName& tagName, Document& document)
46 : SVGElement(tagName, document) 46 : SVGElement(tagName, document)
47 , m_tableValues(SVGAnimatedNumberList::create(this, SVGNames::tableValuesAtt r, SVGNumberList::create())) 47 , m_tableValues(SVGAnimatedNumberList::create(this, SVGNames::tableValuesAtt r, SVGNumberList::create()))
48 , m_slope(SVGAnimatedNumber::create(this, SVGNames::slopeAttr, SVGNumber::cr eate(1))) 48 , m_slope(SVGAnimatedNumber::create(this, SVGNames::slopeAttr, SVGNumber::cr eate(1)))
49 , m_intercept(SVGAnimatedNumber::create(this, SVGNames::interceptAttr, SVGNu mber::create())) 49 , m_intercept(SVGAnimatedNumber::create(this, SVGNames::interceptAttr, SVGNu mber::create()))
50 , m_amplitude(SVGAnimatedNumber::create(this, SVGNames::amplitudeAttr, SVGNu mber::create(1))) 50 , m_amplitude(SVGAnimatedNumber::create(this, SVGNames::amplitudeAttr, SVGNu mber::create(1)))
51 , m_exponent(SVGAnimatedNumber::create(this, SVGNames::exponentAttr, SVGNumb er::create(1))) 51 , m_exponent(SVGAnimatedNumber::create(this, SVGNames::exponentAttr, SVGNumb er::create(1)))
52 , m_offset(SVGAnimatedNumber::create(this, SVGNames::offsetAttr, SVGNumber:: create())) 52 , m_offset(SVGAnimatedNumber::create(this, SVGNames::offsetAttr, SVGNumber:: create()))
53 , m_type(SVGAnimatedEnumeration<ComponentTransferType>::create(this, SVGName s::typeAttr, FECOMPONENTTRANSFER_TYPE_IDENTITY)) 53 , m_type(SVGAnimatedEnumeration<ComponentTransferType>::create(this, SVGName s::typeAttr, FECOMPONENTTRANSFER_TYPE_IDENTITY))
54 { 54 {
55 ScriptWrappable::init(this);
56
57 addToPropertyMap(m_tableValues); 55 addToPropertyMap(m_tableValues);
58 addToPropertyMap(m_slope); 56 addToPropertyMap(m_slope);
59 addToPropertyMap(m_intercept); 57 addToPropertyMap(m_intercept);
60 addToPropertyMap(m_amplitude); 58 addToPropertyMap(m_amplitude);
61 addToPropertyMap(m_exponent); 59 addToPropertyMap(m_exponent);
62 addToPropertyMap(m_offset); 60 addToPropertyMap(m_offset);
63 addToPropertyMap(m_type); 61 addToPropertyMap(m_type);
64 } 62 }
65 63
66 bool SVGComponentTransferFunctionElement::isSupportedAttribute(const QualifiedNa me& attrName) 64 bool SVGComponentTransferFunctionElement::isSupportedAttribute(const QualifiedNa me& attrName)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 func.type = m_type->currentValue()->enumValue(); 99 func.type = m_type->currentValue()->enumValue();
102 func.slope = m_slope->currentValue()->value(); 100 func.slope = m_slope->currentValue()->value();
103 func.intercept = m_intercept->currentValue()->value(); 101 func.intercept = m_intercept->currentValue()->value();
104 func.amplitude = m_amplitude->currentValue()->value(); 102 func.amplitude = m_amplitude->currentValue()->value();
105 func.exponent = m_exponent->currentValue()->value(); 103 func.exponent = m_exponent->currentValue()->value();
106 func.offset = m_offset->currentValue()->value(); 104 func.offset = m_offset->currentValue()->value();
107 func.tableValues = m_tableValues->currentValue()->toFloatVector(); 105 func.tableValues = m_tableValues->currentValue()->toFloatVector();
108 return func; 106 return func;
109 } 107 }
110 108
111 } 109 } // namespace blink
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