| OLD | NEW |
| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/svg/SVGElement.h" | 28 #include "core/svg/SVGElement.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class SVGFELightElement : public SVGElement { | 32 class SVGFELightElement : public SVGElement { |
| 33 public: | 33 public: |
| 34 virtual PassRefPtr<LightSource> lightSource() const = 0; | 34 virtual PassRefPtr<LightSource> lightSource() const = 0; |
| 35 static SVGFELightElement* findLightElement(const SVGElement*); | 35 static SVGFELightElement* findLightElement(const SVGElement*); |
| 36 static PassRefPtr<LightSource> findLightSource(const SVGElement*); | 36 static PassRefPtr<LightSource> findLightSource(const SVGElement*); |
| 37 | 37 |
| 38 virtual void accept(Visitor* visitor) const OVERRIDE { SVGElement::accept(vi
sitor); } |
| 39 |
| 38 protected: | 40 protected: |
| 39 SVGFELightElement(const QualifiedName&, const Handle<Document>&); | 41 SVGFELightElement(const QualifiedName&, const Handle<Document>&); |
| 40 | 42 |
| 41 private: | 43 private: |
| 42 bool isSupportedAttribute(const QualifiedName&); | 44 bool isSupportedAttribute(const QualifiedName&); |
| 43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 44 virtual void svgAttributeChanged(const QualifiedName&); | 46 virtual void svgAttributeChanged(const QualifiedName&); |
| 45 virtual void childrenChanged(bool changedByParser = false, const Handle<Node
>& beforeChange = nullptr, const Handle<Node>& afterChange = nullptr, int childC
ountDelta = 0); | 47 virtual void childrenChanged(bool changedByParser = false, const Handle<Node
>& beforeChange = nullptr, const Handle<Node>& afterChange = nullptr, int childC
ountDelta = 0); |
| 46 | 48 |
| 47 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFELightElement) | 49 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFELightElement) |
| 48 DECLARE_ANIMATED_NUMBER(Azimuth, azimuth) | 50 DECLARE_ANIMATED_NUMBER(Azimuth, azimuth) |
| 49 DECLARE_ANIMATED_NUMBER(Elevation, elevation) | 51 DECLARE_ANIMATED_NUMBER(Elevation, elevation) |
| 50 DECLARE_ANIMATED_NUMBER(X, x) | 52 DECLARE_ANIMATED_NUMBER(X, x) |
| 51 DECLARE_ANIMATED_NUMBER(Y, y) | 53 DECLARE_ANIMATED_NUMBER(Y, y) |
| 52 DECLARE_ANIMATED_NUMBER(Z, z) | 54 DECLARE_ANIMATED_NUMBER(Z, z) |
| 53 DECLARE_ANIMATED_NUMBER(PointsAtX, pointsAtX) | 55 DECLARE_ANIMATED_NUMBER(PointsAtX, pointsAtX) |
| 54 DECLARE_ANIMATED_NUMBER(PointsAtY, pointsAtY) | 56 DECLARE_ANIMATED_NUMBER(PointsAtY, pointsAtY) |
| 55 DECLARE_ANIMATED_NUMBER(PointsAtZ, pointsAtZ) | 57 DECLARE_ANIMATED_NUMBER(PointsAtZ, pointsAtZ) |
| 56 DECLARE_ANIMATED_NUMBER(SpecularExponent, specularExponent) | 58 DECLARE_ANIMATED_NUMBER(SpecularExponent, specularExponent) |
| 57 DECLARE_ANIMATED_NUMBER(LimitingConeAngle, limitingConeAngle) | 59 DECLARE_ANIMATED_NUMBER(LimitingConeAngle, limitingConeAngle) |
| 58 END_DECLARE_ANIMATED_PROPERTIES | 60 END_DECLARE_ANIMATED_PROPERTIES |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace WebCore | 63 } // namespace WebCore |
| 62 | 64 |
| 63 #endif // ENABLE(SVG) | 65 #endif // ENABLE(SVG) |
| 64 #endif | 66 #endif |
| OLD | NEW |