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

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

Issue 135563002: Update remaining rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 FilterDataState state; 53 FilterDataState state;
54 }; 54 };
55 55
56 class GraphicsContext; 56 class GraphicsContext;
57 57
58 class RenderSVGResourceFilter FINAL : public RenderSVGResourceContainer { 58 class RenderSVGResourceFilter FINAL : public RenderSVGResourceContainer {
59 public: 59 public:
60 explicit RenderSVGResourceFilter(SVGFilterElement*); 60 explicit RenderSVGResourceFilter(SVGFilterElement*);
61 virtual ~RenderSVGResourceFilter(); 61 virtual ~RenderSVGResourceFilter();
62 62
63 virtual const char* renderName() const { return "RenderSVGResourceFilter"; } 63 virtual const char* renderName() const OVERRIDE { return "RenderSVGResourceF ilter"; }
64 virtual bool isSVGResourceFilter() const OVERRIDE { return true; } 64 virtual bool isSVGResourceFilter() const OVERRIDE { return true; }
65 65
66 virtual void removeAllClientsFromCache(bool markForInvalidation = true); 66 virtual void removeAllClientsFromCache(bool markForInvalidation = true) OVER RIDE;
67 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true); 67 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true) OVERRIDE;
68 68
69 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u nsigned short resourceMode); 69 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u nsigned short resourceMode) OVERRIDE;
70 virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned sh ort resourceMode, const Path*, const RenderSVGShape*); 70 virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned sh ort resourceMode, const Path*, const RenderSVGShape*) OVERRIDE;
71 71
72 FloatRect resourceBoundingBox(RenderObject*); 72 FloatRect resourceBoundingBox(RenderObject*);
73 73
74 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); 74 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*);
75 75
76 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el ement())->filterUnitsCurrentValue(); } 76 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el ement())->filterUnitsCurrentValue(); }
77 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement (element())->primitiveUnitsCurrentValue(); } 77 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement (element())->primitiveUnitsCurrentValue(); }
78 78
79 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); 79 void primitiveAttributeChanged(RenderObject*, const QualifiedName&);
80 80
81 virtual RenderSVGResourceType resourceType() const { return s_resourceType; } 81 virtual RenderSVGResourceType resourceType() const OVERRIDE { return s_resou rceType; }
82 static const RenderSVGResourceType s_resourceType; 82 static const RenderSVGResourceType s_resourceType;
83 83
84 FloatRect drawingRegion(RenderObject*) const; 84 FloatRect drawingRegion(RenderObject*) const;
85 private: 85 private:
86 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); 86 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&);
87 87
88 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; 88 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap;
89 FilterMap m_filter; 89 FilterMap m_filter;
90 }; 90 };
91 91
92 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); 92 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter());
93 93
94 } 94 }
95 95
96 #endif 96 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceContainer.h ('k') | Source/core/rendering/svg/RenderSVGResourceFilterPrimitive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698