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

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

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert aggressive svgAttributeChanged, add NeedsRebaseline 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/SVGMaskElement.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public SVGURIReference, 42 public SVGURIReference,
43 public SVGTests, 43 public SVGTests,
44 public SVGFitToViewBox { 44 public SVGFitToViewBox {
45 public: 45 public:
46 static PassRefPtr<SVGPatternElement> create(Document&); 46 static PassRefPtr<SVGPatternElement> create(Document&);
47 47
48 void collectPatternAttributes(PatternAttributes&) const; 48 void collectPatternAttributes(PatternAttributes&) const;
49 49
50 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const; 50 virtual AffineTransform localCoordinateSpaceTransform(SVGElement::CTMScope) const;
51 51
52 SVGAnimatedLength* x() const { return m_x.get(); }
53 SVGAnimatedLength* y() const { return m_y.get(); }
54 SVGAnimatedLength* width() const { return m_width.get(); }
55 SVGAnimatedLength* height() const { return m_height.get(); }
56
52 private: 57 private:
53 explicit SVGPatternElement(Document&); 58 explicit SVGPatternElement(Document&);
54 59
55 virtual bool isValid() const { return SVGTests::isValid(); } 60 virtual bool isValid() const { return SVGTests::isValid(); }
56 virtual bool needsPendingResourceHandling() const { return false; } 61 virtual bool needsPendingResourceHandling() const { return false; }
57 62
58 bool isSupportedAttribute(const QualifiedName&); 63 bool isSupportedAttribute(const QualifiedName&);
59 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
60 virtual void svgAttributeChanged(const QualifiedName&); 65 virtual void svgAttributeChanged(const QualifiedName&);
61 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 66 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
62 67
63 virtual RenderObject* createRenderer(RenderStyle*); 68 virtual RenderObject* createRenderer(RenderStyle*);
64 69
65 virtual bool selfHasRelativeLengths() const; 70 virtual bool selfHasRelativeLengths() const;
66 71
72 RefPtr<SVGAnimatedLength> m_x;
73 RefPtr<SVGAnimatedLength> m_y;
74 RefPtr<SVGAnimatedLength> m_width;
75 RefPtr<SVGAnimatedLength> m_height;
67 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement) 76 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPatternElement)
68 DECLARE_ANIMATED_LENGTH(X, x)
69 DECLARE_ANIMATED_LENGTH(Y, y)
70 DECLARE_ANIMATED_LENGTH(Width, width)
71 DECLARE_ANIMATED_LENGTH(Height, height)
72 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S VGUnitType) 77 DECLARE_ANIMATED_ENUMERATION(PatternUnits, patternUnits, SVGUnitTypes::S VGUnitType)
73 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S VGUnitTypes::SVGUnitType) 78 DECLARE_ANIMATED_ENUMERATION(PatternContentUnits, patternContentUnits, S VGUnitTypes::SVGUnitType)
74 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform) 79 DECLARE_ANIMATED_TRANSFORM_LIST(PatternTransform, patternTransform)
75 DECLARE_ANIMATED_STRING(Href, href) 80 DECLARE_ANIMATED_STRING(Href, href)
76 DECLARE_ANIMATED_RECT(ViewBox, viewBox) 81 DECLARE_ANIMATED_RECT(ViewBox, viewBox)
77 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio) 82 DECLARE_ANIMATED_PRESERVEASPECTRATIO(PreserveAspectRatio, preserveAspect Ratio)
78 END_DECLARE_ANIMATED_PROPERTIES 83 END_DECLARE_ANIMATED_PROPERTIES
79 84
80 // SVGTests 85 // SVGTests
81 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); } 86 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); }
82 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); } 87 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); }
83 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); } 88 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); }
84 }; 89 };
85 90
86 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag)); 91 DEFINE_NODE_TYPE_CASTS(SVGPatternElement, hasTagName(SVGNames::patternTag));
87 92
88 } // namespace WebCore 93 } // namespace WebCore
89 94
90 #endif 95 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMaskElement.cpp ('k') | Source/core/svg/SVGPatternElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698