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 * Copyright (C) 2014 Google, Inc. |
4 * | 5 * |
5 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
8 * 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. |
9 * | 10 * |
10 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 14 * Library General Public License for more details. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 58 |
58 // "base class" methods for all the elements which render as paths | 59 // "base class" methods for all the elements which render as paths |
59 virtual void toClipPath(Path&); | 60 virtual void toClipPath(Path&); |
60 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 61 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
61 | 62 |
62 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); } | 63 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); } |
63 | 64 |
64 SVGAnimatedTransformList* transform() { return m_transform.get(); } | 65 SVGAnimatedTransformList* transform() { return m_transform.get(); } |
65 const SVGAnimatedTransformList* transform() const { return m_transform.get()
; } | 66 const SVGAnimatedTransformList* transform() const { return m_transform.get()
; } |
66 | 67 |
| 68 AffineTransform computeCTM(SVGElement::CTMScope mode, SVGGraphicsElement::St
yleUpdateStrategy, |
| 69 const SVGGraphicsElement* ancestor = 0) const; |
| 70 |
67 protected: | 71 protected: |
68 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); | 72 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); |
69 | 73 |
70 bool isSupportedAttribute(const QualifiedName&); | 74 bool isSupportedAttribute(const QualifiedName&); |
71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 75 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
72 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 76 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
73 | 77 |
74 RefPtr<SVGAnimatedTransformList> m_transform; | 78 RefPtr<SVGAnimatedTransformList> m_transform; |
75 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) | 79 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) |
76 END_DECLARE_ANIMATED_PROPERTIES | 80 END_DECLARE_ANIMATED_PROPERTIES |
77 | 81 |
78 private: | 82 private: |
79 virtual bool isSVGGraphicsElement() const OVERRIDE FINAL { return true; } | 83 virtual bool isSVGGraphicsElement() const OVERRIDE FINAL { return true; } |
80 | 84 |
81 // Used by <animateMotion> | 85 // Used by <animateMotion> |
82 OwnPtr<AffineTransform> m_supplementalTransform; | 86 OwnPtr<AffineTransform> m_supplementalTransform; |
83 }; | 87 }; |
84 | 88 |
85 inline bool isSVGGraphicsElement(const Node& node) | 89 inline bool isSVGGraphicsElement(const Node& node) |
86 { | 90 { |
87 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); | 91 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); |
88 } | 92 } |
89 | 93 |
90 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); | 94 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); |
91 | 95 |
92 } // namespace WebCore | 96 } // namespace WebCore |
93 | 97 |
94 #endif // SVGGraphicsElement_h | 98 #endif // SVGGraphicsElement_h |
OLD | NEW |