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

Unified Diff: Source/core/rendering/svg/RenderSVGResourcePattern.h

Issue 661643005: Pass more const RenderObject& in the vicinity of paint-servers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: const RenderObject& Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/svg/RenderSVGResourcePattern.h
diff --git a/Source/core/rendering/svg/RenderSVGResourcePattern.h b/Source/core/rendering/svg/RenderSVGResourcePattern.h
index a2d36f76841925ed7412600d9ddfcd9f4dbaf4f7..97ea61870e2bfac056d5e82e611027c463d75fac 100644
--- a/Source/core/rendering/svg/RenderSVGResourcePattern.h
+++ b/Source/core/rendering/svg/RenderSVGResourcePattern.h
@@ -51,22 +51,22 @@ public:
virtual void removeAllClientsFromCache(bool markForInvalidation = true) override;
virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true) override;
- virtual SVGPaintServer preparePaintServer(RenderObject*) override;
+ virtual SVGPaintServer preparePaintServer(const RenderObject&) override;
virtual RenderSVGResourceType resourceType() const override { return s_resourceType; }
static const RenderSVGResourceType s_resourceType;
private:
- bool buildTileImageTransform(RenderObject*, const PatternAttributes&, const SVGPatternElement*, FloatRect& patternBoundaries, AffineTransform& tileImageTransform) const;
+ bool buildTileImageTransform(const RenderObject&, const PatternAttributes&, const SVGPatternElement*, FloatRect& patternBoundaries, AffineTransform& tileImageTransform) const;
PassOwnPtr<ImageBuffer> createTileImage(const PatternAttributes&, const FloatRect& tileBoundaries,
const FloatRect& absoluteTileBoundaries, const AffineTransform& tileImageTransform) const;
- PatternData* buildPattern(RenderObject*, const SVGPatternElement*);
+ PatternData* buildPattern(const RenderObject&, const SVGPatternElement*);
bool m_shouldCollectPatternAttributes : 1;
PatternAttributes m_attributes;
- HashMap<RenderObject*, OwnPtr<PatternData> > m_patternMap;
+ HashMap<const RenderObject*, OwnPtr<PatternData> > m_patternMap;
};
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceGradient.cpp ('k') | Source/core/rendering/svg/RenderSVGResourcePattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698