| Index: Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| diff --git a/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp b/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| index dceefe5d35b9c7392718ccf28cc0581d732afc70..57c963fd83c7a70eac48c7da7617df66dd4a8c7d 100644
|
| --- a/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| +++ b/Source/core/rendering/svg/SVGTextLayoutEngineBaseline.cpp
|
| @@ -40,7 +40,7 @@ float SVGTextLayoutEngineBaseline::calculateBaselineShift(const SVGRenderStyle&
|
| if (style.baselineShift() == BS_LENGTH) {
|
| RefPtrWillBeRawPtr<SVGLength> baselineShiftValueLength = style.baselineShiftValue();
|
| if (baselineShiftValueLength->unitType() == LengthTypePercentage)
|
| - return baselineShiftValueLength->valueAsPercentage() * m_font.fontDescription().computedPixelSize();
|
| + return baselineShiftValueLength->scaleByPercentage(m_font.fontDescription().computedPixelSize());
|
|
|
| SVGLengthContext lengthContext(contextElement);
|
| return baselineShiftValueLength->value(lengthContext);
|
|
|