| Index: Source/WebCore/css/CSSPrimitiveValue.cpp
|
| ===================================================================
|
| --- Source/WebCore/css/CSSPrimitiveValue.cpp (revision 128804)
|
| +++ Source/WebCore/css/CSSPrimitiveValue.cpp (working copy)
|
| @@ -469,7 +469,8 @@
|
| template<> Length CSSPrimitiveValue::computeLength(RenderStyle* style, RenderStyle* rootStyle, float multiplier, bool computingFontSize)
|
| {
|
| #if ENABLE(SUBPIXEL_LAYOUT)
|
| - return Length(static_cast<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed);
|
| + double value = computeLengthDouble(style, rootStyle, multiplier, computingFontSize);
|
| + return Length(static_cast<float>(value > intMaxForLayoutUnit || value < intMinForLayoutUnit ? 0.0 : value), Fixed);
|
| #else
|
| return Length(roundForImpreciseConversion<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed);
|
| #endif
|
|
|