Title: [115364] branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp
Revision
115364
Author
[email protected]
Date
2012-04-26 14:24:19 -0700 (Thu, 26 Apr 2012)

Log Message

Continuing to use roundForImpreciseConversion when subpixel-layout is disabled, but Lengths are still treated as floats.

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp (115363 => 115364)


--- branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp	2012-04-26 21:21:56 UTC (rev 115363)
+++ branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp	2012-04-26 21:24:19 UTC (rev 115364)
@@ -431,7 +431,11 @@
 
 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);
+#else
+    return Length(roundForImpreciseConversion<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed);
+#endif
 }
 
 template<> short CSSPrimitiveValue::computeLength(RenderStyle* style, RenderStyle* rootStyle, float multiplier, bool computingFontSize)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to