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

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

Issue 68643007: Remove QualifiedName argument from SVGElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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) 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
(...skipping 30 matching lines...) Expand all
41 41
42 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEDiffuseLightingElement) 42 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEDiffuseLightingElement)
43 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) 43 REGISTER_LOCAL_ANIMATED_PROPERTY(in1)
44 REGISTER_LOCAL_ANIMATED_PROPERTY(diffuseConstant) 44 REGISTER_LOCAL_ANIMATED_PROPERTY(diffuseConstant)
45 REGISTER_LOCAL_ANIMATED_PROPERTY(surfaceScale) 45 REGISTER_LOCAL_ANIMATED_PROPERTY(surfaceScale)
46 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthX) 46 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthX)
47 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthY) 47 REGISTER_LOCAL_ANIMATED_PROPERTY(kernelUnitLengthY)
48 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) 48 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes)
49 END_REGISTER_ANIMATED_PROPERTIES 49 END_REGISTER_ANIMATED_PROPERTIES
50 50
51 inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const QualifiedN ame& tagName, Document& document) 51 inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(Document& docume nt)
52 : SVGFilterPrimitiveStandardAttributes(tagName, document) 52 : SVGFilterPrimitiveStandardAttributes(SVGNames::feDiffuseLightingTag, docum ent)
53 , m_diffuseConstant(1) 53 , m_diffuseConstant(1)
54 , m_surfaceScale(1) 54 , m_surfaceScale(1)
55 { 55 {
56 ASSERT(hasTagName(SVGNames::feDiffuseLightingTag));
57 ScriptWrappable::init(this); 56 ScriptWrappable::init(this);
58 registerAnimatedPropertiesForSVGFEDiffuseLightingElement(); 57 registerAnimatedPropertiesForSVGFEDiffuseLightingElement();
59 } 58 }
60 59
61 PassRefPtr<SVGFEDiffuseLightingElement> SVGFEDiffuseLightingElement::create(cons t QualifiedName& tagName, Document& document) 60 PassRefPtr<SVGFEDiffuseLightingElement> SVGFEDiffuseLightingElement::create(Docu ment& document)
62 { 61 {
63 return adoptRef(new SVGFEDiffuseLightingElement(tagName, document)); 62 return adoptRef(new SVGFEDiffuseLightingElement(document));
64 } 63 }
65 64
66 const AtomicString& SVGFEDiffuseLightingElement::kernelUnitLengthXIdentifier() 65 const AtomicString& SVGFEDiffuseLightingElement::kernelUnitLengthXIdentifier()
67 { 66 {
68 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGKernelUnitLengthX", Ato micString::ConstructFromLiteral)); 67 DEFINE_STATIC_LOCAL(AtomicString, s_identifier, ("SVGKernelUnitLengthX", Ato micString::ConstructFromLiteral));
69 return s_identifier; 68 return s_identifier;
70 } 69 }
71 70
72 const AtomicString& SVGFEDiffuseLightingElement::kernelUnitLengthYIdentifier() 71 const AtomicString& SVGFEDiffuseLightingElement::kernelUnitLengthYIdentifier()
73 { 72 {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 ASSERT(renderer->style()); 218 ASSERT(renderer->style());
220 Color color = renderer->style()->svgStyle()->lightingColor(); 219 Color color = renderer->style()->svgStyle()->lightingColor();
221 220
222 RefPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, surfa ceScaleCurrentValue(), diffuseConstantCurrentValue(), 221 RefPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, surfa ceScaleCurrentValue(), diffuseConstantCurrentValue(),
223 kernelUnitLengthXCurrentValue(), kernelUnitLengthYCurrentValue(), lightS ource.release()); 222 kernelUnitLengthXCurrentValue(), kernelUnitLengthYCurrentValue(), lightS ource.release());
224 effect->inputEffects().append(input1); 223 effect->inputEffects().append(input1);
225 return effect.release(); 224 return effect.release();
226 } 225 }
227 226
228 } 227 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEDiffuseLightingElement.h ('k') | Source/core/svg/SVGFEDisplacementMapElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698