Index: Source/core/css/ComputedStyleCSSValueMapping.cpp |
diff --git a/Source/core/css/ComputedStyleCSSValueMapping.cpp b/Source/core/css/ComputedStyleCSSValueMapping.cpp |
index 608e31ec3d17b03a6eeb5ee7021acdb872887343..afdb14398cc0f3540e8298c56cc37a608bc3e0ad 100644 |
--- a/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -479,11 +479,7 @@ static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> valueForLineHeight(const Comput |
if (length.isNegative()) |
return cssValuePool().createIdentifierValue(CSSValueNormal); |
- float floatValue = floatValueForLength(length, style.fontDescription().specifiedSize()); |
- if (length.isPercent()) |
- return cssValuePool().createValue(floatValue, CSSPrimitiveValue::CSS_PX); |
- |
- return zoomAdjustedPixelValue(floatValue, style); |
+ return zoomAdjustedPixelValue(floatValueForLength(length, style.fontDescription().specifiedSize()), style); |
} |
static CSSValueID identifierForFamily(const AtomicString& family) |