| Index: Source/core/svg/SVGLengthContext.cpp
|
| diff --git a/Source/core/svg/SVGLengthContext.cpp b/Source/core/svg/SVGLengthContext.cpp
|
| index 447df21ca06ace55048dc7ed306856eaf0a59ac9..092664c34e41ab4d124917a8d117b7ebc7ce218c 100644
|
| --- a/Source/core/svg/SVGLengthContext.cpp
|
| +++ b/Source/core/svg/SVGLengthContext.cpp
|
| @@ -185,7 +185,7 @@ float SVGLengthContext::convertValueFromPercentageToUserUnits(const SVGLength& v
|
| return value.scaleByPercentage(dimensionForLengthMode(value.unitMode(), viewportSize));
|
| }
|
|
|
| -static inline LayoutStyle* layoutStyleForLengthResolving(const SVGElement* context)
|
| +static inline const LayoutStyle* layoutStyleForLengthResolving(const SVGElement* context)
|
| {
|
| if (!context)
|
| return 0;
|
| @@ -204,7 +204,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;
|
|
|
| @@ -217,7 +217,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();
|
| @@ -225,7 +225,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;
|
|
|
| @@ -240,7 +240,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;
|
|
|
|
|