OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 26 matching lines...) Expand all Loading... |
37 enum StyleUpdateStrategy { AllowStyleUpdate, DisallowStyleUpdate }; | 37 enum StyleUpdateStrategy { AllowStyleUpdate, DisallowStyleUpdate }; |
38 | 38 |
39 AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); | 39 AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); |
40 AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate); | 40 AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate); |
41 AffineTransform getTransformToElement(SVGElement*, ExceptionState&); | 41 AffineTransform getTransformToElement(SVGElement*, ExceptionState&); |
42 SVGElement* nearestViewportElement() const; | 42 SVGElement* nearestViewportElement() const; |
43 SVGElement* farthestViewportElement() const; | 43 SVGElement* farthestViewportElement() const; |
44 | 44 |
45 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const OVERRIDE { return animatedLocalTransform(); } | 45 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const OVERRIDE { return animatedLocalTransform(); } |
46 virtual AffineTransform animatedLocalTransform() const; | 46 virtual AffineTransform animatedLocalTransform() const; |
47 virtual AffineTransform* supplementalTransform(); | 47 virtual AffineTransform* supplementalTransform() OVERRIDE; |
48 | 48 |
49 virtual SVGRect getBBox(); | 49 virtual SVGRect getBBox(); |
50 SVGRect getStrokeBBox(); | 50 SVGRect getStrokeBBox(); |
51 | 51 |
52 // "base class" methods for all the elements which render as paths | 52 // "base class" methods for all the elements which render as paths |
53 virtual void toClipPath(Path&); | 53 virtual void toClipPath(Path&); |
54 virtual RenderObject* createRenderer(RenderStyle*); | 54 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
55 | 55 |
56 protected: | 56 protected: |
57 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); | 57 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); |
58 | 58 |
59 bool isSupportedAttribute(const QualifiedName&); | 59 bool isSupportedAttribute(const QualifiedName&); |
60 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 60 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
61 virtual void svgAttributeChanged(const QualifiedName&); | 61 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
62 | 62 |
63 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) | 63 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) |
64 DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform) | 64 DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform) |
65 END_DECLARE_ANIMATED_PROPERTIES | 65 END_DECLARE_ANIMATED_PROPERTIES |
66 | 66 |
67 private: | 67 private: |
68 virtual bool isSVGGraphicsElement() const OVERRIDE { return true; } | 68 virtual bool isSVGGraphicsElement() const OVERRIDE FINAL { return true; } |
69 | 69 |
70 // SVGTests | 70 // SVGTests |
71 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | 71 virtual void synchronizeRequiredFeatures() OVERRIDE FINAL { SVGTests::synchr
onizeRequiredFeatures(this); } |
72 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | 72 virtual void synchronizeRequiredExtensions() OVERRIDE FINAL { SVGTests::sync
hronizeRequiredExtensions(this); } |
73 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | 73 virtual void synchronizeSystemLanguage() OVERRIDE FINAL { SVGTests::synchron
izeSystemLanguage(this); } |
74 | 74 |
75 // Used by <animateMotion> | 75 // Used by <animateMotion> |
76 OwnPtr<AffineTransform> m_supplementalTransform; | 76 OwnPtr<AffineTransform> m_supplementalTransform; |
77 }; | 77 }; |
78 | 78 |
79 inline bool isSVGGraphicsElement(const Node& node) | 79 inline bool isSVGGraphicsElement(const Node& node) |
80 { | 80 { |
81 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); | 81 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); |
82 } | 82 } |
83 | 83 |
84 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); | 84 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); |
85 | 85 |
86 } // namespace WebCore | 86 } // namespace WebCore |
87 | 87 |
88 #endif // SVGGraphicsElement_h | 88 #endif // SVGGraphicsElement_h |
OLD | NEW |