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

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

Issue 177703004: [SVG] Remove SVGAnimatedPropertyMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove ws 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/SVGFEDisplacementMapElement.h ('k') | Source/core/svg/SVGFEDropShadowElement.h » ('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) 2006 Oliver Hunt <oliver@nerget.com> 2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 23 matching lines...) Expand all
34 if (entries.isEmpty()) { 34 if (entries.isEmpty()) {
35 entries.append(std::make_pair(CHANNEL_UNKNOWN, emptyString())); 35 entries.append(std::make_pair(CHANNEL_UNKNOWN, emptyString()));
36 entries.append(std::make_pair(CHANNEL_R, "R")); 36 entries.append(std::make_pair(CHANNEL_R, "R"));
37 entries.append(std::make_pair(CHANNEL_G, "G")); 37 entries.append(std::make_pair(CHANNEL_G, "G"));
38 entries.append(std::make_pair(CHANNEL_B, "B")); 38 entries.append(std::make_pair(CHANNEL_B, "B"));
39 entries.append(std::make_pair(CHANNEL_A, "A")); 39 entries.append(std::make_pair(CHANNEL_A, "A"));
40 } 40 }
41 return entries; 41 return entries;
42 } 42 }
43 43
44 // Animated property definitions
45
46 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement)
47 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes)
48 END_REGISTER_ANIMATED_PROPERTIES
49
50 inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(Document& docume nt) 44 inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(Document& docume nt)
51 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDisplacementMapTag, docum ent) 45 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDisplacementMapTag, docum ent)
52 , m_scale(SVGAnimatedNumber::create(this, SVGNames::scaleAttr, SVGNumber::cr eate(0))) 46 , m_scale(SVGAnimatedNumber::create(this, SVGNames::scaleAttr, SVGNumber::cr eate(0)))
53 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( ))) 47 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( )))
54 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create ())) 48 , m_in2(SVGAnimatedString::create(this, SVGNames::in2Attr, SVGString::create ()))
55 , m_xChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi s, SVGNames::xChannelSelectorAttr, CHANNEL_A)) 49 , m_xChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi s, SVGNames::xChannelSelectorAttr, CHANNEL_A))
56 , m_yChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi s, SVGNames::yChannelSelectorAttr, CHANNEL_A)) 50 , m_yChannelSelector(SVGAnimatedEnumeration<ChannelSelectorType>::create(thi s, SVGNames::yChannelSelectorAttr, CHANNEL_A))
57 { 51 {
58 ScriptWrappable::init(this); 52 ScriptWrappable::init(this);
59 53
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 147
154 RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSe lector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumVal ue(), m_scale->currentValue()->value()); 148 RefPtr<FilterEffect> effect = FEDisplacementMap::create(filter, m_xChannelSe lector->currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumVal ue(), m_scale->currentValue()->value());
155 FilterEffectVector& inputEffects = effect->inputEffects(); 149 FilterEffectVector& inputEffects = effect->inputEffects();
156 inputEffects.reserveCapacity(2); 150 inputEffects.reserveCapacity(2);
157 inputEffects.append(input1); 151 inputEffects.append(input1);
158 inputEffects.append(input2); 152 inputEffects.append(input2);
159 return effect.release(); 153 return effect.release();
160 } 154 }
161 155
162 } 156 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEDisplacementMapElement.h ('k') | Source/core/svg/SVGFEDropShadowElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698