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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGGradientElement.h

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase Created 4 years 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
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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 DECLARE_VIRTUAL_TRACE(); 62 DECLARE_VIRTUAL_TRACE();
63 63
64 protected: 64 protected:
65 SVGGradientElement(const QualifiedName&, Document&); 65 SVGGradientElement(const QualifiedName&, Document&);
66 66
67 void svgAttributeChanged(const QualifiedName&) override; 67 void svgAttributeChanged(const QualifiedName&) override;
68 68
69 private: 69 private:
70 bool needsPendingResourceHandling() const final { return false; } 70 bool needsPendingResourceHandling() const final { return false; }
71 71
72 void collectStyleForPresentationAttribute(const QualifiedName&,
73 const AtomicString&,
74 MutableStylePropertySet*) override;
75
72 void childrenChanged(const ChildrenChange&) final; 76 void childrenChanged(const ChildrenChange&) final;
73 77
74 Member<SVGAnimatedTransformList> m_gradientTransform; 78 Member<SVGAnimatedTransformList> m_gradientTransform;
75 Member<SVGAnimatedEnumeration<SVGSpreadMethodType>> m_spreadMethod; 79 Member<SVGAnimatedEnumeration<SVGSpreadMethodType>> m_spreadMethod;
76 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_gradientUnits; 80 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> m_gradientUnits;
77 }; 81 };
78 82
79 inline bool isSVGGradientElement(const SVGElement& element) { 83 inline bool isSVGGradientElement(const SVGElement& element) {
80 return element.hasTagName(SVGNames::radialGradientTag) || 84 return element.hasTagName(SVGNames::radialGradientTag) ||
81 element.hasTagName(SVGNames::linearGradientTag); 85 element.hasTagName(SVGNames::linearGradientTag);
82 } 86 }
83 87
84 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); 88 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement);
85 89
86 } // namespace blink 90 } // namespace blink
87 91
88 #endif // SVGGradientElement_h 92 #endif // SVGGradientElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGGeometryElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698