Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index 4239ef7b8f88b797e81b034ee09258ff8fdff51b..6c13cd38786ebc98fc21fc4bdb7d27fc5713889f 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -942,12 +942,13 @@ void StyleBuilderFunctions::applyValueCSSPropertyBaselineShift(StyleResolverStat |
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
if (!primitiveValue->isValueID()) { |
svgStyle.setBaselineShift(BS_LENGTH); |
- svgStyle.setBaselineShiftValue(SVGLength::fromCSSPrimitiveValue(primitiveValue)); |
+ svgStyle.setBaselineShiftValue(StyleBuilderConverter::convertLength(state, primitiveValue)); |
return; |
} |
switch (primitiveValue->getValueID()) { |
case CSSValueBaseline: |
- svgStyle.setBaselineShift(BS_BASELINE); |
+ svgStyle.setBaselineShift(BS_LENGTH); |
+ svgStyle.setBaselineShiftValue(Length(Fixed)); |
return; |
case CSSValueSub: |
svgStyle.setBaselineShift(BS_SUB); |