Title: [101097] branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp
- Revision
- 101097
- Author
- [email protected]
- Date
- 2011-11-23 11:33:53 -0800 (Wed, 23 Nov 2011)
Log Message
Initialize Lengths from float css values as opposed to the rounded int values.
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp (101096 => 101097)
--- branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp 2011-11-23 19:30:08 UTC (rev 101096)
+++ branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp 2011-11-23 19:33:53 UTC (rev 101097)
@@ -346,7 +346,7 @@
template<> Length CSSPrimitiveValue::computeLength(RenderStyle* style, RenderStyle* rootStyle, double multiplier, bool computingFontSize)
{
// FIXME: Length.h no longer expects 28 bit integers, so these bounds should be INT_MAX and INT_MIN
- return Length(roundForImpreciseConversion<int, intMaxForAppUnit, intMinForAppUnit>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed);
+ return Length(static_cast<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed);
}
template<> short CSSPrimitiveValue::computeLength(RenderStyle* style, RenderStyle* rootStyle, double multiplier, bool computingFontSize)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes