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

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

Issue 153883003: [SVG] SVGAnimatedTransform{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove m_zoomAndPan Created 6 years, 10 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/SVGParserUtilities.cpp ('k') | Source/core/svg/SVGPatternElement.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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 static PassRefPtr<SVGPatternElement> create(Document&); 44 static PassRefPtr<SVGPatternElement> create(Document&);
45 45
46 void collectPatternAttributes(PatternAttributes&) const; 46 void collectPatternAttributes(PatternAttributes&) const;
47 47
48 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE; 48 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE;
49 49
50 SVGAnimatedLength* x() const { return m_x.get(); } 50 SVGAnimatedLength* x() const { return m_x.get(); }
51 SVGAnimatedLength* y() const { return m_y.get(); } 51 SVGAnimatedLength* y() const { return m_y.get(); }
52 SVGAnimatedLength* width() const { return m_width.get(); } 52 SVGAnimatedLength* width() const { return m_width.get(); }
53 SVGAnimatedLength* height() const { return m_height.get(); } 53 SVGAnimatedLength* height() const { return m_height.get(); }
54 SVGAnimatedTransformList* patternTransform() { return m_patternTransform.get (); }
55 const SVGAnimatedTransformList* patternTransform() const { return m_patternT ransform.get(); }
54 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() { return m _patternUnits.get(); } 56 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() { return m _patternUnits.get(); }
55 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits() { r eturn m_patternContentUnits.get(); } 57 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits() { r eturn m_patternContentUnits.get(); }
56 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() cons t { return m_patternUnits.get(); } 58 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() cons t { return m_patternUnits.get(); }
57 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits () const { return m_patternContentUnits.get(); } 59 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits () const { return m_patternContentUnits.get(); }
58 60
59 private: 61 private:
60 explicit SVGPatternElement(Document&); 62 explicit SVGPatternElement(Document&);
61 63
62 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } 64 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); }
63 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; } 65 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; }
64 66
65 bool isSupportedAttribute(const QualifiedName&); 67 bool isSupportedAttribute(const QualifiedName&);
66 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 68 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
67 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 69 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
68 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; 70 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
69 71
70 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 72 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
71 73
72 virtual bool selfHasRelativeLengths() const OVERRIDE; 74 virtual bool selfHasRelativeLengths() const OVERRIDE;
73 75
74 RefPtr<SVGAnimatedLength> m_x; 76 RefPtr<SVGAnimatedLength> m_x;
75 RefPtr<SVGAnimatedLength> m_y; 77 RefPtr<SVGAnimatedLength> m_y;
76 RefPtr<SVGAnimatedLength> m_width; 78 RefPtr<SVGAnimatedLength> m_width;
77 RefPtr<SVGAnimatedLength> m_height; 79 RefPtr<SVGAnimatedLength> m_height;
80 RefPtr<SVGAnimatedTransformList> m_patternTransform;
78 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternUnits; 81 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternUnits;
79 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternContentU nits; 82 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternContentU nits;
80 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) 83 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement)
81 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform)
82 END_DECLARE_ANIMATED_PROPERTIES 84 END_DECLARE_ANIMATED_PROPERTIES
83 }; 85 };
84 86
85 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag)); 87 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag));
86 88
87 } // namespace WebCore 89 } // namespace WebCore
88 90
89 #endif 91 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGParserUtilities.cpp ('k') | Source/core/svg/SVGPatternElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698