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