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

Unified Diff: Source/core/svg/SVGLengthContext.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. 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/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGStopElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLengthContext.cpp
diff --git a/Source/core/svg/SVGLengthContext.cpp b/Source/core/svg/SVGLengthContext.cpp
index e3651cc0eb5285e95117e7b81e09edb7bc6f1f7a..3ac599668a53dc4e2be9eac9b5dc135007a65322 100644
--- a/Source/core/svg/SVGLengthContext.cpp
+++ b/Source/core/svg/SVGLengthContext.cpp
@@ -179,7 +179,7 @@ float SVGLengthContext::convertValueFromUserUnits(float value, SVGLengthMode mod
return 0;
}
-static inline LayoutStyle* layoutStyleForLengthResolving(const SVGElement* context)
+static inline const LayoutStyle* layoutStyleForLengthResolving(const SVGElement* context)
{
if (!context)
return 0;
@@ -198,7 +198,7 @@ static inline LayoutStyle* layoutStyleForLengthResolving(const SVGElement* conte
float SVGLengthContext::convertValueFromUserUnitsToEMS(float value) const
{
- LayoutStyle* style = layoutStyleForLengthResolving(m_context);
+ const LayoutStyle* style = layoutStyleForLengthResolving(m_context);
if (!style)
return 0;
@@ -211,7 +211,7 @@ float SVGLengthContext::convertValueFromUserUnitsToEMS(float value) const
float SVGLengthContext::convertValueFromEMSToUserUnits(float value) const
{
- LayoutStyle* style = layoutStyleForLengthResolving(m_context);
+ const LayoutStyle* style = layoutStyleForLengthResolving(m_context);
if (!style)
return 0;
return value * style->specifiedFontSize();
@@ -219,7 +219,7 @@ float SVGLengthContext::convertValueFromEMSToUserUnits(float value) const
float SVGLengthContext::convertValueFromUserUnitsToEXS(float value) const
{
- LayoutStyle* style = layoutStyleForLengthResolving(m_context);
+ const LayoutStyle* style = layoutStyleForLengthResolving(m_context);
if (!style)
return 0;
@@ -234,7 +234,7 @@ float SVGLengthContext::convertValueFromUserUnitsToEXS(float value) const
float SVGLengthContext::convertValueFromEXSToUserUnits(float value) const
{
- LayoutStyle* style = layoutStyleForLengthResolving(m_context);
+ const LayoutStyle* style = layoutStyleForLengthResolving(m_context);
if (!style)
return 0;
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGStopElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698