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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceLinearGradient.h

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 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) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 11 matching lines...) Expand all
22 #define RenderSVGResourceLinearGradient_h 22 #define RenderSVGResourceLinearGradient_h
23 23
24 #if ENABLE(SVG) 24 #if ENABLE(SVG)
25 #include "LinearGradientAttributes.h" 25 #include "LinearGradientAttributes.h"
26 #include "RenderSVGResourceGradient.h" 26 #include "RenderSVGResourceGradient.h"
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 class SVGLinearGradientElement; 30 class SVGLinearGradientElement;
31 31
32 class RenderSVGResourceLinearGradient : public RenderSVGResourceGradient { 32 class RenderSVGResourceLinearGradient FINAL : public RenderSVGResourceGradient {
33 public: 33 public:
34 RenderSVGResourceLinearGradient(SVGLinearGradientElement*); 34 RenderSVGResourceLinearGradient(SVGLinearGradientElement*);
35 virtual ~RenderSVGResourceLinearGradient(); 35 virtual ~RenderSVGResourceLinearGradient();
36 36
37 virtual const char* renderName() const { return "RenderSVGResourceLinearGrad ient"; } 37 virtual const char* renderName() const { return "RenderSVGResourceLinearGrad ient"; }
38 38
39 virtual RenderSVGResourceType resourceType() const { return s_resourceType; } 39 virtual RenderSVGResourceType resourceType() const { return s_resourceType; }
40 static RenderSVGResourceType s_resourceType; 40 static RenderSVGResourceType s_resourceType;
41 41
42 virtual SVGUnitTypes::SVGUnitType gradientUnits() const { return m_attribute s.gradientUnits(); } 42 virtual SVGUnitTypes::SVGUnitType gradientUnits() const { return m_attribute s.gradientUnits(); }
43 virtual void calculateGradientTransform(AffineTransform& transform) { transf orm = m_attributes.gradientTransform(); } 43 virtual void calculateGradientTransform(AffineTransform& transform) { transf orm = m_attributes.gradientTransform(); }
44 virtual bool collectGradientAttributes(SVGGradientElement*); 44 virtual bool collectGradientAttributes(SVGGradientElement*);
45 virtual void buildGradient(GradientData*) const; 45 virtual void buildGradient(GradientData*) const;
46 46
47 FloatPoint startPoint(const LinearGradientAttributes&) const; 47 FloatPoint startPoint(const LinearGradientAttributes&) const;
48 FloatPoint endPoint(const LinearGradientAttributes&) const; 48 FloatPoint endPoint(const LinearGradientAttributes&) const;
49 49
50 private: 50 private:
51 LinearGradientAttributes m_attributes; 51 LinearGradientAttributes m_attributes;
52 }; 52 };
53 53
54 } 54 }
55 55
56 #endif 56 #endif
57 #endif 57 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceGradient.h ('k') | Source/core/rendering/svg/RenderSVGResourceMarker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698