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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef SVGGraphicsElement_h | 21 #ifndef SVGGraphicsElement_h |
22 #define SVGGraphicsElement_h | 22 #define SVGGraphicsElement_h |
23 | 23 |
24 #include "core/svg/SVGAnimatedTransformList.h" | 24 #include "core/svg/SVGAnimatedTransformList.h" |
25 #include "core/svg/SVGStyledLocatableElement.h" | 25 #include "core/svg/SVGStyledElement.h" |
26 #include "core/svg/SVGTests.h" | 26 #include "core/svg/SVGTests.h" |
27 #include "core/svg/SVGTransformable.h" | 27 #include "core/svg/SVGTransformable.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 class AffineTransform; | 31 class AffineTransform; |
32 class Path; | 32 class Path; |
33 | 33 |
34 class SVGGraphicsElement : public SVGStyledLocatableElement, public SVGTransform
able, public SVGTests { | 34 class SVGGraphicsElement : public SVGStyledElement, public SVGTransformable, pub
lic SVGTests { |
35 public: | 35 public: |
36 virtual ~SVGGraphicsElement(); | 36 virtual ~SVGGraphicsElement(); |
37 | 37 |
38 virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); | 38 virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); |
39 virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate)
; | 39 virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate)
; |
40 virtual SVGElement* nearestViewportElement() const; | 40 virtual SVGElement* nearestViewportElement() const; |
41 virtual SVGElement* farthestViewportElement() const; | 41 virtual SVGElement* farthestViewportElement() const; |
42 | 42 |
43 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope
mode) const { return SVGTransformable::localCoordinateSpaceTransform(mode); } | 43 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope
mode) const { return SVGTransformable::localCoordinateSpaceTransform(mode); } |
44 virtual AffineTransform animatedLocalTransform() const; | 44 virtual AffineTransform animatedLocalTransform() const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) | 76 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) |
77 { | 77 { |
78 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); | 78 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); |
79 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE
lement()); | 79 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE
lement()); |
80 return static_cast<SVGGraphicsElement*>(node); | 80 return static_cast<SVGGraphicsElement*>(node); |
81 } | 81 } |
82 | 82 |
83 } // namespace WebCore | 83 } // namespace WebCore |
84 | 84 |
85 #endif // SVGGraphicsElement_h | 85 #endif // SVGGraphicsElement_h |
OLD | NEW |