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

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

Issue 2824823003: DOM-based SVG resource tracking (Closed)
Patch Set: Update baselines Created 3 years, 7 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 DECLARE_VIRTUAL_TRACE(); 65 DECLARE_VIRTUAL_TRACE();
66 66
67 protected: 67 protected:
68 SVGGradientElement(const QualifiedName&, Document&); 68 SVGGradientElement(const QualifiedName&, Document&);
69 69
70 using VisitedSet = HeapHashSet<Member<const SVGGradientElement>>; 70 using VisitedSet = HeapHashSet<Member<const SVGGradientElement>>;
71 71
72 void SvgAttributeChanged(const QualifiedName&) override; 72 void SvgAttributeChanged(const QualifiedName&) override;
73 73
74 private: 74 private:
75 bool NeedsPendingResourceHandling() const final { return false; }
76
77 void CollectStyleForPresentationAttribute(const QualifiedName&, 75 void CollectStyleForPresentationAttribute(const QualifiedName&,
78 const AtomicString&, 76 const AtomicString&,
79 MutableStylePropertySet*) override; 77 MutableStylePropertySet*) override;
80 78
81 void ChildrenChanged(const ChildrenChange&) final; 79 void ChildrenChanged(const ChildrenChange&) final;
82 80
83 Vector<Gradient::ColorStop> BuildStops() const; 81 Vector<Gradient::ColorStop> BuildStops() const;
84 82
85 Member<SVGAnimatedTransformList> gradient_transform_; 83 Member<SVGAnimatedTransformList> gradient_transform_;
86 Member<SVGAnimatedEnumeration<SVGSpreadMethodType>> spread_method_; 84 Member<SVGAnimatedEnumeration<SVGSpreadMethodType>> spread_method_;
87 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> gradient_units_; 85 Member<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>> gradient_units_;
88 }; 86 };
89 87
90 inline bool IsSVGGradientElement(const SVGElement& element) { 88 inline bool IsSVGGradientElement(const SVGElement& element) {
91 return element.HasTagName(SVGNames::radialGradientTag) || 89 return element.HasTagName(SVGNames::radialGradientTag) ||
92 element.HasTagName(SVGNames::linearGradientTag); 90 element.HasTagName(SVGNames::linearGradientTag);
93 } 91 }
94 92
95 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement); 93 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGGradientElement);
96 94
97 } // namespace blink 95 } // namespace blink
98 96
99 #endif // SVGGradientElement_h 97 #endif // SVGGradientElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFilterElement.h ('k') | third_party/WebKit/Source/core/svg/SVGMarkerElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698