~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Source/WebCore/svg/SVGMaskElement.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Library General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Library General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Library General Public License
 
15
 * along with this library; see the file COPYING.LIB.  If not, write to
 
16
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
17
 * Boston, MA 02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef SVGMaskElement_h
 
21
#define SVGMaskElement_h
 
22
 
 
23
#if ENABLE(SVG)
 
24
#include "SVGAnimatedBoolean.h"
 
25
#include "SVGAnimatedEnumeration.h"
 
26
#include "SVGAnimatedLength.h"
 
27
#include "SVGExternalResourcesRequired.h"
 
28
#include "SVGLangSpace.h"
 
29
#include "SVGStyledElement.h"
 
30
#include "SVGTests.h"
 
31
#include "SVGUnitTypes.h"
 
32
 
 
33
namespace WebCore {
 
34
 
 
35
class SVGMaskElement : public SVGStyledElement,
 
36
                       public SVGTests,
 
37
                       public SVGLangSpace,
 
38
                       public SVGExternalResourcesRequired {
 
39
public:
 
40
    static PassRefPtr<SVGMaskElement> create(const QualifiedName&, Document*);
 
41
 
 
42
private:
 
43
    SVGMaskElement(const QualifiedName&, Document*);
 
44
 
 
45
    virtual bool isValid() const { return SVGTests::isValid(); }
 
46
    virtual bool needsPendingResourceHandling() const { return false; }
 
47
 
 
48
    bool isSupportedAttribute(const QualifiedName&);
 
49
    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
 
50
    virtual void svgAttributeChanged(const QualifiedName&);
 
51
    virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
 
52
 
 
53
    virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
 
54
 
 
55
    virtual bool selfHasRelativeLengths() const;
 
56
 
 
57
    BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMaskElement)
 
58
        DECLARE_ANIMATED_ENUMERATION(MaskUnits, maskUnits, SVGUnitTypes::SVGUnitType)
 
59
        DECLARE_ANIMATED_ENUMERATION(MaskContentUnits, maskContentUnits, SVGUnitTypes::SVGUnitType)
 
60
        DECLARE_ANIMATED_LENGTH(X, x)
 
61
        DECLARE_ANIMATED_LENGTH(Y, y)
 
62
        DECLARE_ANIMATED_LENGTH(Width, width)
 
63
        DECLARE_ANIMATED_LENGTH(Height, height)
 
64
        DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
 
65
    END_DECLARE_ANIMATED_PROPERTIES
 
66
 
 
67
    // SVGTests
 
68
    virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFeatures(this); }
 
69
    virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequiredExtensions(this); }
 
70
    virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLanguage(this); }
 
71
};
 
72
 
 
73
}
 
74
 
 
75
#endif
 
76
#endif