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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.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) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz>
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/SVGFEDiffuseLightingElement.h" 20 #include "core/svg/SVGFEDiffuseLightingElement.h"
21 21
22 #include "core/layout/LayoutObject.h" 22 #include "core/layout/LayoutObject.h"
23 #include "core/style/ComputedStyle.h" 23 #include "core/style/ComputedStyle.h"
24 #include "core/svg/SVGParserUtilities.h"
25 #include "core/svg/graphics/filters/SVGFilterBuilder.h" 24 #include "core/svg/graphics/filters/SVGFilterBuilder.h"
26 #include "platform/graphics/filters/FEDiffuseLighting.h" 25 #include "platform/graphics/filters/FEDiffuseLighting.h"
27 #include "platform/graphics/filters/FilterEffect.h" 26 #include "platform/graphics/filters/Filter.h"
28 27
29 namespace blink { 28 namespace blink {
30 29
31 inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& docume nt) 30 inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& docume nt)
32 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDiffuseLightingTag, docum ent) 31 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDiffuseLightingTag, docum ent)
33 , m_diffuseConstant(SVGAnimatedNumber::create(this, SVGNames::diffuseConstan tAttr, SVGNumber::create(1))) 32 , m_diffuseConstant(SVGAnimatedNumber::create(this, SVGNames::diffuseConstan tAttr, SVGNumber::create(1)))
34 , m_surfaceScale(SVGAnimatedNumber::create(this, SVGNames::surfaceScaleAttr, SVGNumber::create(1))) 33 , m_surfaceScale(SVGAnimatedNumber::create(this, SVGNames::surfaceScaleAttr, SVGNumber::create(1)))
35 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames: :kernelUnitLengthAttr)) 34 , m_kernelUnitLength(SVGAnimatedNumberOptionalNumber::create(this, SVGNames: :kernelUnitLengthAttr))
36 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( ))) 35 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create( )))
37 { 36 {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 FilterEffect* effect = FEDiffuseLighting::create(filter, 134 FilterEffect* effect = FEDiffuseLighting::create(filter,
136 color, 135 color,
137 m_surfaceScale->currentValue()->value(), 136 m_surfaceScale->currentValue()->value(),
138 m_diffuseConstant->currentValue()->value(), 137 m_diffuseConstant->currentValue()->value(),
139 lightSource.release()); 138 lightSource.release());
140 effect->inputEffects().append(input1); 139 effect->inputEffects().append(input1);
141 return effect; 140 return effect;
142 } 141 }
143 142
144 } // namespace blink 143 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698