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

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

Issue 2342353002: Clean up includes in SVGFE*Element and thereabouts (Closed)
Patch Set: Created 4 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
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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 */ 18 */
19 19
20 #include "core/svg/SVGFEDisplacementMapElement.h" 20 #include "core/svg/SVGFEDisplacementMapElement.h"
21 21
22 #include "core/SVGNames.h" 22 #include "core/SVGNames.h"
23 #include "core/svg/graphics/filters/SVGFilterBuilder.h" 23 #include "core/svg/graphics/filters/SVGFilterBuilder.h"
24 #include "platform/graphics/filters/FilterEffect.h"
25 24
26 namespace blink { 25 namespace blink {
27 26
28 template<> const SVGEnumerationStringEntries& getStaticStringEntries<ChannelSele ctorType>() 27 template<> const SVGEnumerationStringEntries& getStaticStringEntries<ChannelSele ctorType>()
29 { 28 {
30 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); 29 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ());
31 if (entries.isEmpty()) { 30 if (entries.isEmpty()) {
32 entries.append(std::make_pair(CHANNEL_R, "R")); 31 entries.append(std::make_pair(CHANNEL_R, "R"));
33 entries.append(std::make_pair(CHANNEL_G, "G")); 32 entries.append(std::make_pair(CHANNEL_G, "G"));
34 entries.append(std::make_pair(CHANNEL_B, "B")); 33 entries.append(std::make_pair(CHANNEL_B, "B"));
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 101
103 FilterEffect* effect = FEDisplacementMap::create(filter, m_xChannelSelector- >currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m _scale->currentValue()->value()); 102 FilterEffect* effect = FEDisplacementMap::create(filter, m_xChannelSelector- >currentValue()->enumValue(), m_yChannelSelector->currentValue()->enumValue(), m _scale->currentValue()->value());
104 FilterEffectVector& inputEffects = effect->inputEffects(); 103 FilterEffectVector& inputEffects = effect->inputEffects();
105 inputEffects.reserveCapacity(2); 104 inputEffects.reserveCapacity(2);
106 inputEffects.append(input1); 105 inputEffects.append(input1);
107 inputEffects.append(input2); 106 inputEffects.append(input2);
108 return effect; 107 return effect;
109 } 108 }
110 109
111 } // namespace blink 110 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698