| Index: Source/core/style/ComputedStyle.cpp
|
| diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp
|
| index be6750a2d58f368f365364f44fa3add27163e796..a4c2f8158858bc44eadb7395ee89f3a0b1e2bfc3 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 std::min(lh.value(), LayoutUnit::max().toFloat());
|
| }
|
|
|
| void ComputedStyle::setWordSpacing(float wordSpacing)
|
|
|