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

Unified Diff: Source/core/layout/svg/SVGLayoutSupport.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/style/LayoutStyle.h ('k') | Source/core/layout/svg/SVGLayoutSupport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGLayoutSupport.h
diff --git a/Source/core/layout/svg/SVGLayoutSupport.h b/Source/core/layout/svg/SVGLayoutSupport.h
index 18168978ee810e56925c36e97299d60240014836..e0a587a3103c819188db321fa0c53b8f9305021c 100644
--- a/Source/core/layout/svg/SVGLayoutSupport.h
+++ b/Source/core/layout/svg/SVGLayoutSupport.h
@@ -78,8 +78,8 @@ public:
static const LayoutObject* pushMappingToContainer(const LayoutObject*, const LayoutLayerModelObject* ancestorToStopAt, RenderGeometryMap&);
// Shared between SVG renderers and resources.
- static void applyStrokeStyleToContext(GraphicsContext*, const LayoutStyle&, const LayoutObject*);
- static void applyStrokeStyleToStrokeData(StrokeData*, const LayoutStyle*, const LayoutObject*);
+ static void applyStrokeStyleToContext(GraphicsContext&, const LayoutStyle&, const LayoutObject&);
+ static void applyStrokeStyleToStrokeData(StrokeData&, const LayoutStyle&, const LayoutObject&);
// Update the GC state (on |paintInfo.context|) for painting |renderer|
// using |style|. |resourceMode| is used to decide between fill/stroke.
@@ -97,7 +97,7 @@ public:
static bool isRenderableTextNode(const LayoutObject*);
// Determines whether a svg node should isolate or not based on LayoutStyle.
- static bool willIsolateBlendingDescendantsForStyle(const LayoutStyle*);
+ static bool willIsolateBlendingDescendantsForStyle(const LayoutStyle&);
static bool willIsolateBlendingDescendantsForObject(const LayoutObject*);
template<typename LayoutObjectType>
static bool computeHasNonIsolatedBlendingDescendants(const LayoutObjectType*);
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/core/layout/svg/SVGLayoutSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698