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

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: 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE; 50 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const OVERRIDE;
51 51
52 SVGAnimatedLength* x() const { return m_x.get(); } 52 SVGAnimatedLength* x() const { return m_x.get(); }
53 SVGAnimatedLength* y() const { return m_y.get(); } 53 SVGAnimatedLength* y() const { return m_y.get(); }
54 SVGAnimatedLength* width() const { return m_width.get(); } 54 SVGAnimatedLength* width() const { return m_width.get(); }
55 SVGAnimatedLength* height() const { return m_height.get(); } 55 SVGAnimatedLength* height() const { return m_height.get(); }
56 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); } 56 SVGAnimatedRect* viewBox() const { return m_viewBox.get(); }
57 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() const { return m_prese rveAspectRatio.get(); } 57 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() const { return m_prese rveAspectRatio.get(); }
58 SVGAnimatedString* href() { return m_href.get(); } 58 SVGAnimatedString* href() { return m_href.get(); }
59 SVGAnimatedTransformList* patternTransform() { return m_patternTransform.get (); }
60 const SVGAnimatedTransformList* patternTransform() const { return m_patternT ransform.get(); }
59 61
60 private: 62 private:
61 explicit SVGPatternElement(Document&); 63 explicit SVGPatternElement(Document&);
62 64
63 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } 65 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); }
64 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; } 66 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; }
65 67
66 bool isSupportedAttribute(const QualifiedName&); 68 bool isSupportedAttribute(const QualifiedName&);
67 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 69 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
68 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 70 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
69 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; 71 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
70 72
71 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 73 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
72 74
73 virtual bool selfHasRelativeLengths() const OVERRIDE; 75 virtual bool selfHasRelativeLengths() const OVERRIDE;
74 76
75 RefPtr<SVGAnimatedLength> m_x; 77 RefPtr<SVGAnimatedLength> m_x;
76 RefPtr<SVGAnimatedLength> m_y; 78 RefPtr<SVGAnimatedLength> m_y;
77 RefPtr<SVGAnimatedLength> m_width; 79 RefPtr<SVGAnimatedLength> m_width;
78 RefPtr<SVGAnimatedLength> m_height; 80 RefPtr<SVGAnimatedLength> m_height;
79 RefPtr<SVGAnimatedRect> m_viewBox; 81 RefPtr<SVGAnimatedRect> m_viewBox;
80 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; 82 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
81 RefPtr<SVGAnimatedString> m_href; 83 RefPtr<SVGAnimatedString> m_href;
84 RefPtr<SVGAnimatedTransformList> m_patternTransform;
82 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) 85 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement)
83 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S VGUnitType) 86 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S VGUnitType)
84 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S VGUnitTypes::SVGUnitType) 87 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S VGUnitTypes::SVGUnitType)
85 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform)
86 END_DECLARE_ANIMATED_PROPERTIES 88 END_DECLARE_ANIMATED_PROPERTIES
87 }; 89 };
88 90
89 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag)); 91 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag));
90 92
91 } // namespace WebCore 93 } // namespace WebCore
92 94
93 #endif 95 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698