Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Side by Side Diff: Source/core/svg/SVGGraphicsElement.h

Issue 132233010: [SVG] SVGAnimatedRect migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebsaed Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/SVGRectTearOff.h"
26 #include "core/svg/SVGTests.h" 27 #include "core/svg/SVGTests.h"
27 28
28 namespace WebCore { 29 namespace WebCore {
29 30
30 class AffineTransform; 31 class AffineTransform;
31 class Path; 32 class Path;
32 33
33 class SVGGraphicsElement : public SVGElement, public SVGTests { 34 class SVGGraphicsElement : public SVGElement, public SVGTests {
34 public: 35 public:
35 virtual ~SVGGraphicsElement(); 36 virtual ~SVGGraphicsElement();
36 37
37 enum StyleUpdateStrategy { AllowStyleUpdate, DisallowStyleUpdate }; 38 enum StyleUpdateStrategy { AllowStyleUpdate, DisallowStyleUpdate };
38 39
39 AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate); 40 AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate);
40 AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate); 41 AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate);
41 AffineTransform getTransformToElement(SVGElement*, ExceptionState&); 42 AffineTransform getTransformToElement(SVGElement*, ExceptionState&);
42 SVGElement* nearestViewportElement() const; 43 SVGElement* nearestViewportElement() const;
43 SVGElement* farthestViewportElement() const; 44 SVGElement* farthestViewportElement() const;
44 45
45 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE { return animatedLocalTransform(); } 46 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE { return animatedLocalTransform(); }
46 virtual AffineTransform animatedLocalTransform() const; 47 virtual AffineTransform animatedLocalTransform() const;
47 virtual AffineTransform* supplementalTransform() OVERRIDE; 48 virtual AffineTransform* supplementalTransform() OVERRIDE;
48 49
49 virtual SVGRect getBBox(); 50 virtual FloatRect getBBox();
50 SVGRect getStrokeBBox(); 51 FloatRect getStrokeBBox();
52
53 PassRefPtr<SVGRectTearOff> getBBoxFromJavascript();
54 PassRefPtr<SVGRectTearOff> getStrokeBBoxFromJavascript();
51 55
52 // "base class" methods for all the elements which render as paths 56 // "base class" methods for all the elements which render as paths
53 virtual void toClipPath(Path&); 57 virtual void toClipPath(Path&);
54 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 58 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
55 59
56 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); } 60 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); }
57 61
58 protected: 62 protected:
59 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat eSVGElement); 63 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat eSVGElement);
60 64
(...skipping 20 matching lines...) Expand all
81 inline bool isSVGGraphicsElement(const Node& node) 85 inline bool isSVGGraphicsElement(const Node& node)
82 { 86 {
83 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); 87 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement();
84 } 88 }
85 89
86 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); 90 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement);
87 91
88 } // namespace WebCore 92 } // namespace WebCore
89 93
90 #endif // SVGGraphicsElement_h 94 #endif // SVGGraphicsElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFitToViewBox.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698