| 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;
|
|
|
|
|