~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/svg/graphics/filters/SVGSpotLightSource.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
    class SpotLightSource : public LightSource {
33
33
    public:
34
 
        SpotLightSource(const FloatPoint3D& position, const FloatPoint3D& direction, float specularExponent, float limitingConeAngle)
35
 
            : LightSource(LS_SPOT)
36
 
            , m_position(position)
37
 
            , m_direction(direction)
38
 
            , m_specularExponent(specularExponent)
39
 
            , m_limitingConeAngle(limitingConeAngle)
40
 
        { }
 
34
        static PassRefPtr<SpotLightSource> create(const FloatPoint3D& position, const FloatPoint3D& direction,
 
35
                                                  float specularExponent, float limitingConeAngle)
 
36
        {
 
37
            return adoptRef(new SpotLightSource(position, direction, specularExponent, limitingConeAngle));
 
38
        }
41
39
 
42
40
        const FloatPoint3D& position() const { return m_position; }
43
41
        const FloatPoint3D& direction() const { return m_direction; }
48
46
        virtual TextStream& externalRepresentation(TextStream&) const;
49
47
 
50
48
    private:
 
49
        SpotLightSource(const FloatPoint3D& position, const FloatPoint3D& direction,
 
50
                        float specularExponent, float limitingConeAngle)
 
51
            : LightSource(LS_SPOT)
 
52
            , m_position(position)
 
53
            , m_direction(direction)
 
54
            , m_specularExponent(specularExponent)
 
55
            , m_limitingConeAngle(limitingConeAngle)
 
56
        {
 
57
        }
 
58
 
51
59
        FloatPoint3D m_position;
52
60
        FloatPoint3D m_direction;
53
61