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

Side by Side Diff: Source/core/svg/SVGFESpecularLightingElement.h

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 15 matching lines...) Expand all
26 #include "core/svg/SVGAnimatedNumber.h" 26 #include "core/svg/SVGAnimatedNumber.h"
27 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" 27 #include "core/svg/SVGAnimatedNumberOptionalNumber.h"
28 #include "core/svg/SVGFELightElement.h" 28 #include "core/svg/SVGFELightElement.h"
29 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" 29 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
30 #include "platform/graphics/filters/FESpecularLighting.h" 30 #include "platform/graphics/filters/FESpecularLighting.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class SVGFESpecularLightingElement FINAL : public SVGFilterPrimitiveStandardAttr ibutes { 34 class SVGFESpecularLightingElement FINAL : public SVGFilterPrimitiveStandardAttr ibutes {
35 public: 35 public:
36 DEFINE_NODE_FACTORY(SVGFESpecularLightingElement); 36 DECLARE_NODE_FACTORY(SVGFESpecularLightingElement);
37 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN ame&); 37 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN ame&);
38 38
39 SVGAnimatedNumber* specularConstant() { return m_specularConstant.get(); } 39 SVGAnimatedNumber* specularConstant() { return m_specularConstant.get(); }
40 SVGAnimatedNumber* specularExponent() { return m_specularExponent.get(); } 40 SVGAnimatedNumber* specularExponent() { return m_specularExponent.get(); }
41 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } 41 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); }
42 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); } 42 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); }
43 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); } 43 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); }
44 SVGAnimatedString* in1() { return m_in1.get(); } 44 SVGAnimatedString* in1() { return m_in1.get(); }
45 private: 45 private:
46 explicit SVGFESpecularLightingElement(Document&); 46 explicit SVGFESpecularLightingElement(Document&);
(...skipping 10 matching lines...) Expand all
57 RefPtr<SVGAnimatedNumber> m_specularConstant; 57 RefPtr<SVGAnimatedNumber> m_specularConstant;
58 RefPtr<SVGAnimatedNumber> m_specularExponent; 58 RefPtr<SVGAnimatedNumber> m_specularExponent;
59 RefPtr<SVGAnimatedNumber> m_surfaceScale; 59 RefPtr<SVGAnimatedNumber> m_surfaceScale;
60 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; 60 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength;
61 RefPtr<SVGAnimatedString> m_in1; 61 RefPtr<SVGAnimatedString> m_in1;
62 }; 62 };
63 63
64 } // namespace WebCore 64 } // namespace WebCore
65 65
66 #endif 66 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEPointLightElement.cpp ('k') | Source/core/svg/SVGFESpecularLightingElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698