| 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/SVGElement.h" | 25 #include "core/svg/SVGElement.h" |
| 26 #include "core/svg/SVGTests.h" | 26 #include "core/svg/SVGTests.h" |
| 27 #include "core/svg/SVGTransformable.h" | |
| 28 | 27 |
| 29 namespace WebCore { | 28 namespace WebCore { |
| 30 | 29 |
| 31 class AffineTransform; | 30 class AffineTransform; |
| 32 class Path; | 31 class Path; |
| 33 | 32 |
| 34 class SVGGraphicsElement : public SVGElement, public SVGTransformable, public SV
GTests { | 33 class SVGGraphicsElement : public SVGElement, public SVGTests { |
| 35 public: | 34 public: |
| 36 virtual ~SVGGraphicsElement(); | 35 virtual ~SVGGraphicsElement(); |
| 37 | 36 |
| 38 virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); | 37 enum StyleUpdateStrategy { AllowStyleUpdate, DisallowStyleUpdate }; |
| 39 virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate)
; | |
| 40 virtual SVGElement* nearestViewportElement() const; | |
| 41 virtual SVGElement* farthestViewportElement() const; | |
| 42 | 38 |
| 43 virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope
mode) const { return SVGTransformable::localCoordinateSpaceTransform(mode); } | 39 AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); |
| 40 AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate); |
| 41 AffineTransform getTransformToElement(SVGElement*, ExceptionState&); |
| 42 SVGElement* nearestViewportElement() const; |
| 43 SVGElement* farthestViewportElement() const; |
| 44 |
| 45 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope)
const OVERRIDE { return animatedLocalTransform(); } |
| 44 virtual AffineTransform animatedLocalTransform() const; | 46 virtual AffineTransform animatedLocalTransform() const; |
| 45 virtual AffineTransform* supplementalTransform(); | 47 virtual AffineTransform* supplementalTransform(); |
| 46 | 48 |
| 47 virtual SVGRect getBBox(); | 49 virtual SVGRect getBBox(); |
| 48 SVGRect getStrokeBBox(); | 50 SVGRect getStrokeBBox(); |
| 49 | 51 |
| 50 // "base class" methods for all the elements which render as paths | 52 // "base class" methods for all the elements which render as paths |
| 51 virtual void toClipPath(Path&); | 53 virtual void toClipPath(Path&); |
| 52 virtual RenderObject* createRenderer(RenderStyle*); | 54 virtual RenderObject* createRenderer(RenderStyle*); |
| 53 | 55 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 77 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) | 79 inline SVGGraphicsElement* toSVGGraphicsElement(Node* node) |
| 78 { | 80 { |
| 79 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); | 81 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); |
| 80 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE
lement()); | 82 ASSERT_WITH_SECURITY_IMPLICATION(!node || toSVGElement(node)->isSVGGraphicsE
lement()); |
| 81 return static_cast<SVGGraphicsElement*>(node); | 83 return static_cast<SVGGraphicsElement*>(node); |
| 82 } | 84 } |
| 83 | 85 |
| 84 } // namespace WebCore | 86 } // namespace WebCore |
| 85 | 87 |
| 86 #endif // SVGGraphicsElement_h | 88 #endif // SVGGraphicsElement_h |
| OLD | NEW |