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

Side by Side Diff: Source/core/svg/SVGFECompositeElement.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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 { 62 {
63 ScriptWrappable::init(this); 63 ScriptWrappable::init(this);
64 64
65 addToPropertyMap(m_k1); 65 addToPropertyMap(m_k1);
66 addToPropertyMap(m_k2); 66 addToPropertyMap(m_k2);
67 addToPropertyMap(m_k3); 67 addToPropertyMap(m_k3);
68 addToPropertyMap(m_k4); 68 addToPropertyMap(m_k4);
69 addToPropertyMap(m_in1); 69 addToPropertyMap(m_in1);
70 addToPropertyMap(m_in2); 70 addToPropertyMap(m_in2);
71 addToPropertyMap(m_svgOperator); 71 addToPropertyMap(m_svgOperator);
72 registerAnimatedPropertiesForSVGFECompositeElement();
73 } 72 }
74 73
75 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(Document& docume nt) 74 PassRefPtr<SVGFECompositeElement> SVGFECompositeElement::create(Document& docume nt)
76 { 75 {
77 return adoptRef(new SVGFECompositeElement(document)); 76 return adoptRef(new SVGFECompositeElement(document));
78 } 77 }
79 78
80 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName) 79 bool SVGFECompositeElement::isSupportedAttribute(const QualifiedName& attrName)
81 { 80 {
82 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 81 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 175
177 RefPtr<FilterEffect> effect = FEComposite::create(filter, m_svgOperator->cur rentValue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->v alue(), m_k3->currentValue()->value(), m_k4->currentValue()->value()); 176 RefPtr<FilterEffect> effect = FEComposite::create(filter, m_svgOperator->cur rentValue()->enumValue(), m_k1->currentValue()->value(), m_k2->currentValue()->v alue(), m_k3->currentValue()->value(), m_k4->currentValue()->value());
178 FilterEffectVector& inputEffects = effect->inputEffects(); 177 FilterEffectVector& inputEffects = effect->inputEffects();
179 inputEffects.reserveCapacity(2); 178 inputEffects.reserveCapacity(2);
180 inputEffects.append(input1); 179 inputEffects.append(input1);
181 inputEffects.append(input2); 180 inputEffects.append(input2);
182 return effect.release(); 181 return effect.release();
183 } 182 }
184 183
185 } 184 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEComponentTransferElement.cpp ('k') | Source/core/svg/SVGFEConvolveMatrixElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698