Chromium Code Reviews| Index: Source/core/style/ComputedStyle.cpp |
| diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp |
| index be6750a2d58f368f365364f44fa3add27163e796..badd02cfba34eab146e418c9946673376952088c 100644 |
| --- a/Source/core/style/ComputedStyle.cpp |
| +++ b/Source/core/style/ComputedStyle.cpp |
| @@ -1256,7 +1256,7 @@ int ComputedStyle::computedLineHeight() const |
| if (lh.isPercent()) |
| return minimumValueForLength(lh, fontSize()); |
| - return lh.value(); |
| + return LayoutUnit(lh.value()); |
|
leviw_travelin_and_unemployed
2015/04/09 23:29:16
I'd just use max(lh.value(), LayoutUnit::max()). T
|
| } |
| void ComputedStyle::setWordSpacing(float wordSpacing) |