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

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

Issue 423093014: [SVG2] Make transform, gradientTransform and patternTransform presentation attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline for mac/win Created 6 years, 4 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
« no previous file with comments | « Source/core/svg/SVGLinearGradientElement.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits() { r eturn m_patternContentUnits.get(); } 57 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits() { r eturn m_patternContentUnits.get(); }
58 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() cons t { return m_patternUnits.get(); } 58 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternUnits() cons t { return m_patternUnits.get(); }
59 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits () const { return m_patternContentUnits.get(); } 59 const SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* patternContentUnits () const { return m_patternContentUnits.get(); }
60 60
61 private: 61 private:
62 explicit SVGPatternElement(Document&); 62 explicit SVGPatternElement(Document&);
63 63
64 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } 64 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); }
65 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; } 65 virtual bool needsPendingResourceHandling() const OVERRIDE { return false; }
66 66
67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
69
67 bool isSupportedAttribute(const QualifiedName&); 70 bool isSupportedAttribute(const QualifiedName&);
68 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
69 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 72 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
70 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; 73 virtual void childrenChanged(const ChildrenChange&) OVERRIDE;
71 74
72 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 75 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
73 76
74 virtual bool selfHasRelativeLengths() const OVERRIDE; 77 virtual bool selfHasRelativeLengths() const OVERRIDE;
75 78
76 RefPtr<SVGAnimatedLength> m_x; 79 RefPtr<SVGAnimatedLength> m_x;
77 RefPtr<SVGAnimatedLength> m_y; 80 RefPtr<SVGAnimatedLength> m_y;
78 RefPtr<SVGAnimatedLength> m_width; 81 RefPtr<SVGAnimatedLength> m_width;
79 RefPtr<SVGAnimatedLength> m_height; 82 RefPtr<SVGAnimatedLength> m_height;
80 RefPtr<SVGAnimatedTransformList> m_patternTransform; 83 RefPtr<SVGAnimatedTransformList> m_patternTransform;
81 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternUnits; 84 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternUnits;
82 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternContentU nits; 85 RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_patternContentU nits;
83 }; 86 };
84 87
85 } // namespace blink 88 } // namespace blink
86 89
87 #endif 90 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGPatternElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698