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

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

Issue 694283002: Const-ify static s_resourceType members in RenderSVGResouce* classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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, 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 FloatRect resourceBoundingBox(const RenderObject*); 70 FloatRect resourceBoundingBox(const RenderObject*);
71 71
72 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); 72 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*);
73 73
74 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el ement())->filterUnits()->currentValue()->enumValue(); } 74 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el ement())->filterUnits()->currentValue()->enumValue(); }
75 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement (element())->primitiveUnits()->currentValue()->enumValue(); } 75 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement (element())->primitiveUnits()->currentValue()->enumValue(); }
76 76
77 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); 77 void primitiveAttributeChanged(RenderObject*, const QualifiedName&);
78 78
79 static const RenderSVGResourceType s_resourceType = FilterResourceType;
79 virtual RenderSVGResourceType resourceType() const override { return s_resou rceType; } 80 virtual RenderSVGResourceType resourceType() const override { return s_resou rceType; }
80 static const RenderSVGResourceType s_resourceType;
81 81
82 FloatRect drawingRegion(RenderObject*) const; 82 FloatRect drawingRegion(RenderObject*) const;
83 private: 83 private:
84 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; 84 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap;
85 FilterMap m_filter; 85 FilterMap m_filter;
86 }; 86 };
87 87
88 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); 88 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter());
89 89
90 } 90 }
91 91
92 #endif 92 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceClipper.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698