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

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

Issue 395813002: Resolve light-source position/direction when updated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/SVGFEDiffuseLightingElement.cpp ('k') | Source/core/svg/SVGFELightElement.cpp » ('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 18 matching lines...) Expand all
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class Filter; 32 class Filter;
33 33
34 class SVGFELightElement : public SVGElement { 34 class SVGFELightElement : public SVGElement {
35 public: 35 public:
36 virtual PassRefPtr<LightSource> lightSource(Filter*) const = 0; 36 virtual PassRefPtr<LightSource> lightSource(Filter*) const = 0;
37 static SVGFELightElement* findLightElement(const SVGElement&); 37 static SVGFELightElement* findLightElement(const SVGElement&);
38 38
39 FloatPoint3D position() const;
40 FloatPoint3D pointsAt() const;
41
39 SVGAnimatedNumber* azimuth() { return m_azimuth.get(); } 42 SVGAnimatedNumber* azimuth() { return m_azimuth.get(); }
40 const SVGAnimatedNumber* azimuth() const { return m_azimuth.get(); } 43 const SVGAnimatedNumber* azimuth() const { return m_azimuth.get(); }
41 SVGAnimatedNumber* elevation() { return m_elevation.get(); } 44 SVGAnimatedNumber* elevation() { return m_elevation.get(); }
42 const SVGAnimatedNumber* elevation() const { return m_elevation.get(); } 45 const SVGAnimatedNumber* elevation() const { return m_elevation.get(); }
43 SVGAnimatedNumber* x() { return m_x.get(); } 46 SVGAnimatedNumber* x() { return m_x.get(); }
44 const SVGAnimatedNumber* x() const { return m_x.get(); } 47 const SVGAnimatedNumber* x() const { return m_x.get(); }
45 SVGAnimatedNumber* y() { return m_y.get(); } 48 SVGAnimatedNumber* y() { return m_y.get(); }
46 const SVGAnimatedNumber* y() const { return m_y.get(); } 49 const SVGAnimatedNumber* y() const { return m_y.get(); }
47 SVGAnimatedNumber* z() { return m_z.get(); } 50 SVGAnimatedNumber* z() { return m_z.get(); }
48 const SVGAnimatedNumber* z() const { return m_z.get(); } 51 const SVGAnimatedNumber* z() const { return m_z.get(); }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 inline bool isSVGFELightElement(const Node& node) 86 inline bool isSVGFELightElement(const Node& node)
84 { 87 {
85 return node.hasTagName(SVGNames::feDistantLightTag) || node.hasTagName(SVGNa mes::fePointLightTag) || node.hasTagName(SVGNames::feSpotLightTag); 88 return node.hasTagName(SVGNames::feDistantLightTag) || node.hasTagName(SVGNa mes::fePointLightTag) || node.hasTagName(SVGNames::feSpotLightTag);
86 } 89 }
87 90
88 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGFELightElement); 91 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGFELightElement);
89 92
90 } // namespace WebCore 93 } // namespace WebCore
91 94
92 #endif 95 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEDiffuseLightingElement.cpp ('k') | Source/core/svg/SVGFELightElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698