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 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
58 virtual void svgAttributeChanged(const QualifiedName&); | 58 virtual void svgAttributeChanged(const QualifiedName&); |
59 | 59 |
60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) | 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) |
61 DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform) | 61 DECLARE_ANIMATED_TRANSFORM_LIST(Transform, transform) |
62 END_DECLARE_ANIMATED_PROPERTIES | 62 END_DECLARE_ANIMATED_PROPERTIES |
63 | 63 |
64 private: | 64 private: |
65 virtual bool isSVGGraphicsElement() const OVERRIDE { return true; } | 65 virtual bool isSVGGraphicsElement() const OVERRIDE { return true; } |
66 | 66 |
| 67 bool cachedValidity() const; |
| 68 |
67 // SVGTests | 69 // SVGTests |
68 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | 70 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } |
69 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | 71 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } |
70 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | 72 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } |
71 | 73 |
72 // Used by <animateMotion> | 74 // Used by <animateMotion> |
73 OwnPtr<AffineTransform> m_supplementalTransform; | 75 OwnPtr<AffineTransform> m_supplementalTransform; |
74 }; | 76 }; |
75 | 77 |
76 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) | 78 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) |
77 { | 79 { |
78 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); | 80 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); |
79 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE
lement()); | 81 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE
lement()); |
80 return static_cast<SVGGraphicsElement*>(node); | 82 return static_cast<SVGGraphicsElement*>(node); |
81 } | 83 } |
82 | 84 |
83 } // namespace WebCore | 85 } // namespace WebCore |
84 | 86 |
85 #endif // SVGGraphicsElement_h | 87 #endif // SVGGraphicsElement_h |
OLD | NEW |