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

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

Issue 403343005: Make manual isSVG*Element() helpers as efficient as the generated ones (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix macro name Created 6 years, 5 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/SVGElement.h ('k') | Source/core/svg/SVGGradientElement.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) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 RefPtr<SVGAnimatedNumber> m_x; 76 RefPtr<SVGAnimatedNumber> m_x;
77 RefPtr<SVGAnimatedNumber> m_y; 77 RefPtr<SVGAnimatedNumber> m_y;
78 RefPtr<SVGAnimatedNumber> m_z; 78 RefPtr<SVGAnimatedNumber> m_z;
79 RefPtr<SVGAnimatedNumber> m_pointsAtX; 79 RefPtr<SVGAnimatedNumber> m_pointsAtX;
80 RefPtr<SVGAnimatedNumber> m_pointsAtY; 80 RefPtr<SVGAnimatedNumber> m_pointsAtY;
81 RefPtr<SVGAnimatedNumber> m_pointsAtZ; 81 RefPtr<SVGAnimatedNumber> m_pointsAtZ;
82 RefPtr<SVGAnimatedNumber> m_specularExponent; 82 RefPtr<SVGAnimatedNumber> m_specularExponent;
83 RefPtr<SVGAnimatedNumber> m_limitingConeAngle; 83 RefPtr<SVGAnimatedNumber> m_limitingConeAngle;
84 }; 84 };
85 85
86 inline bool isSVGFELightElement(const Node& node) 86 inline bool isSVGFELightElement(const SVGElement& element)
87 { 87 {
88 return node.hasTagName(SVGNames::feDistantLightTag) || node.hasTagName(SVGNa mes::fePointLightTag) || node.hasTagName(SVGNames::feSpotLightTag); 88 return element.hasTagName(SVGNames::feDistantLightTag) || element.hasTagName (SVGNames::fePointLightTag) || element.hasTagName(SVGNames::feSpotLightTag);
89 } 89 }
90 90
91 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGFELightElement); 91 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGFELightElement);
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif 95 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGGradientElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698