| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // "base class" methods for all the elements which render as paths | 58 // "base class" methods for all the elements which render as paths |
| 59 virtual void toClipPath(Path&); | 59 virtual void toClipPath(Path&); |
| 60 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 60 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
| 61 | 61 |
| 62 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); } | 62 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); } |
| 63 | 63 |
| 64 SVGAnimatedTransformList* transform() { return m_transform.get(); } | 64 SVGAnimatedTransformList* transform() { return m_transform.get(); } |
| 65 const SVGAnimatedTransformList* transform() const { return m_transform.get()
; } | 65 const SVGAnimatedTransformList* transform() const { return m_transform.get()
; } |
| 66 | 66 |
| 67 AffineTransform computeCTM(SVGElement::CTMScope mode, SVGGraphicsElement::St
yleUpdateStrategy, |
| 68 const SVGGraphicsElement* ancestor = 0) const; |
| 69 |
| 67 protected: | 70 protected: |
| 68 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); | 71 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); |
| 69 | 72 |
| 70 bool isSupportedAttribute(const QualifiedName&); | 73 bool isSupportedAttribute(const QualifiedName&); |
| 71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 74 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 72 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 75 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 73 | 76 |
| 74 RefPtr<SVGAnimatedTransformList> m_transform; | 77 RefPtr<SVGAnimatedTransformList> m_transform; |
| 75 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) | 78 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) |
| 76 END_DECLARE_ANIMATED_PROPERTIES | 79 END_DECLARE_ANIMATED_PROPERTIES |
| 77 | 80 |
| 78 private: | 81 private: |
| 79 virtual bool isSVGGraphicsElement() const OVERRIDE FINAL { return true; } | 82 virtual bool isSVGGraphicsElement() const OVERRIDE FINAL { return true; } |
| 80 | 83 |
| 81 // Used by <animateMotion> | 84 // Used by <animateMotion> |
| 82 OwnPtr<AffineTransform> m_supplementalTransform; | 85 OwnPtr<AffineTransform> m_supplementalTransform; |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 inline bool isSVGGraphicsElement(const Node& node) | 88 inline bool isSVGGraphicsElement(const Node& node) |
| 86 { | 89 { |
| 87 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); | 90 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); |
| 88 } | 91 } |
| 89 | 92 |
| 90 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); | 93 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); |
| 91 | 94 |
| 92 } // namespace WebCore | 95 } // namespace WebCore |
| 93 | 96 |
| 94 #endif // SVGGraphicsElement_h | 97 #endif // SVGGraphicsElement_h |
| OLD | NEW |