| Index: Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| diff --git a/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp b/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| index 3825b4b1220fe9eebd40fa21a6a8c158b5cdac5e..502c397993df7a5cb4fcc6f2206b1dd57087f867 100644
|
| --- a/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| +++ b/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| @@ -38,12 +38,12 @@ SVGTextLayoutEngineBaseline::SVGTextLayoutEngineBaseline(const Font& font)
|
| float SVGTextLayoutEngineBaseline::calculateBaselineShift(const SVGRenderStyle* style, SVGElement* contextElement) const
|
| {
|
| if (style->baselineShift() == BS_LENGTH) {
|
| - SVGLength baselineShiftValueLength = style->baselineShiftValue();
|
| - if (baselineShiftValueLength.unitType() == LengthTypePercentage)
|
| - return baselineShiftValueLength.valueAsPercentage() * m_font.pixelSize();
|
| + RefPtr<SVGLength> baselineShiftValueLength = style->baselineShiftValue();
|
| + if (baselineShiftValueLength->unitType() == LengthTypePercentage)
|
| + return baselineShiftValueLength->valueAsPercentage() * m_font.pixelSize();
|
|
|
| SVGLengthContext lengthContext(contextElement);
|
| - return baselineShiftValueLength.value(lengthContext);
|
| + return baselineShiftValueLength->value(lengthContext);
|
| }
|
|
|
| switch (style->baselineShift()) {
|
|
|