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

Unified Diff: Source/core/rendering/svg/RenderSVGResourceGradient.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/RenderSVGResourceGradient.h
diff --git a/Source/core/rendering/svg/RenderSVGResourceGradient.h b/Source/core/rendering/svg/RenderSVGResourceGradient.h
index 76be048b2ebbf0874f55eda4143dc7475609e359..41ca99d616ff330b6e5617d4a4c9882a43cce9d9 100644
--- a/Source/core/rendering/svg/RenderSVGResourceGradient.h
+++ b/Source/core/rendering/svg/RenderSVGResourceGradient.h
@@ -47,7 +47,7 @@ public:
virtual void removeAllClientsFromCache(bool markForInvalidation = true) override final;
virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true) override final;
- virtual SVGPaintServer preparePaintServer(RenderObject*) override final;
+ virtual SVGPaintServer preparePaintServer(const RenderObject&) override final;
virtual bool isChildAllowed(RenderObject* child, RenderStyle*) const override final;
@@ -63,7 +63,7 @@ protected:
private:
bool m_shouldCollectGradientAttributes : 1;
- HashMap<RenderObject*, OwnPtr<GradientData> > m_gradientMap;
+ HashMap<const RenderObject*, OwnPtr<GradientData> > m_gradientMap;
};
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResource.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698