2
* Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
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.
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.
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.
20
#ifndef SVGMaskElement_h
21
#define SVGMaskElement_h
24
#include "SVGAnimatedBoolean.h"
25
#include "SVGAnimatedEnumeration.h"
26
#include "SVGAnimatedLength.h"
27
#include "SVGExternalResourcesRequired.h"
28
#include "SVGLangSpace.h"
29
#include "SVGStyledElement.h"
31
#include "SVGUnitTypes.h"
35
class SVGMaskElement : public SVGStyledElement,
38
public SVGExternalResourcesRequired {
40
static PassRefPtr<SVGMaskElement> create(const QualifiedName&, Document*);
43
SVGMaskElement(const QualifiedName&, Document*);
45
virtual bool isValid() const { return SVGTests::isValid(); }
46
virtual bool needsPendingResourceHandling() const { return false; }
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);
53
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
55
virtual bool selfHasRelativeLengths() const;
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
68
virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFeatures(this); }
69
virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequiredExtensions(this); }
70
virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLanguage(this); }