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

Unified Diff: Source/core/layout/svg/SVGResourcesCache.h

Issue 910083002: Constify and use LayoutStyle reference in layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined again Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/svg/SVGLayoutTreeAsText.cpp ('k') | Source/core/layout/svg/SVGResourcesCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGResourcesCache.h
diff --git a/Source/core/layout/svg/SVGResourcesCache.h b/Source/core/layout/svg/SVGResourcesCache.h
index c1a22906d450ce7a71b4ead86cca2e645c0be40f..f19f2465c1d727039695963f5d146a87929592b3 100644
--- a/Source/core/layout/svg/SVGResourcesCache.h
+++ b/Source/core/layout/svg/SVGResourcesCache.h
@@ -42,7 +42,7 @@ public:
static SVGResources* cachedResourcesForLayoutObject(const LayoutObject*);
// Called from all SVG renderers addChild() methods.
- static void clientWasAddedToTree(LayoutObject*, const LayoutStyle* newStyle);
+ static void clientWasAddedToTree(LayoutObject*, const LayoutStyle& newStyle);
// Called from all SVG renderers removeChild() methods.
static void clientWillBeRemovedFromTree(LayoutObject*);
@@ -54,13 +54,13 @@ public:
static void clientLayoutChanged(LayoutObject*);
// Called from all SVG renderers styleDidChange() methods.
- static void clientStyleChanged(LayoutObject*, StyleDifference, const LayoutStyle* newStyle);
+ static void clientStyleChanged(LayoutObject*, StyleDifference, const LayoutStyle& newStyle);
// Called from RenderSVGResourceContainer::willBeDestroyed().
static void resourceDestroyed(RenderSVGResourceContainer*);
private:
- void addResourcesFromLayoutObject(LayoutObject*, const LayoutStyle*);
+ void addResourcesFromLayoutObject(LayoutObject*, const LayoutStyle&);
void removeResourcesFromLayoutObject(LayoutObject*);
typedef HashMap<const LayoutObject*, OwnPtr<SVGResources>> CacheMap;
« no previous file with comments | « Source/core/layout/svg/SVGLayoutTreeAsText.cpp ('k') | Source/core/layout/svg/SVGResourcesCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698