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

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

Issue 24527003: [oilpan] Implement accept methods to trace the class hierarchy of SVGElement and all sub-classes. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 2 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 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 18 matching lines...) Expand all
29 29
30 struct LinearGradientAttributes; 30 struct LinearGradientAttributes;
31 31
32 class SVGLinearGradientElement : public SVGGradientElement { 32 class SVGLinearGradientElement : public SVGGradientElement {
33 DEFINE_SELF_HANDLE(SVGLinearGradientElement) 33 DEFINE_SELF_HANDLE(SVGLinearGradientElement)
34 public: 34 public:
35 static PassRefPtr<SVGLinearGradientElement> create(const QualifiedName&, con st Handle<Document>&); 35 static PassRefPtr<SVGLinearGradientElement> create(const QualifiedName&, con st Handle<Document>&);
36 36
37 bool collectGradientAttributes(LinearGradientAttributes&); 37 bool collectGradientAttributes(LinearGradientAttributes&);
38 38
39 virtual void accept(Visitor* visitor) const OVERRIDE { SVGGradientElement::a ccept(visitor); }
40
39 private: 41 private:
40 SVGLinearGradientElement(const QualifiedName&, const Handle<Document>&); 42 SVGLinearGradientElement(const QualifiedName&, const Handle<Document>&);
41 43
42 bool isSupportedAttribute(const QualifiedName&); 44 bool isSupportedAttribute(const QualifiedName&);
43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
44 virtual void svgAttributeChanged(const QualifiedName&); 46 virtual void svgAttributeChanged(const QualifiedName&);
45 47
46 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 48 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
47 49
48 virtual bool selfHasRelativeLengths() const; 50 virtual bool selfHasRelativeLengths() const;
49 51
50 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLinearGradientElement) 52 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLinearGradientElement)
51 DECLARE_ANIMATED_LENGTH(X1, x1) 53 DECLARE_ANIMATED_LENGTH(X1, x1)
52 DECLARE_ANIMATED_LENGTH(Y1, y1) 54 DECLARE_ANIMATED_LENGTH(Y1, y1)
53 DECLARE_ANIMATED_LENGTH(X2, x2) 55 DECLARE_ANIMATED_LENGTH(X2, x2)
54 DECLARE_ANIMATED_LENGTH(Y2, y2) 56 DECLARE_ANIMATED_LENGTH(Y2, y2)
55 END_DECLARE_ANIMATED_PROPERTIES 57 END_DECLARE_ANIMATED_PROPERTIES
56 }; 58 };
57 59
58 } // namespace WebCore 60 } // namespace WebCore
59 61
60 #endif // ENABLE(SVG) 62 #endif // ENABLE(SVG)
61 #endif 63 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698