Title: [115387] branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.h
Revision
115387
Author
[email protected]
Date
2012-04-26 17:00:44 -0700 (Thu, 26 Apr 2012)

Log Message

Removing bounds checking in float case of roundForImpreciseConversion (numeric_limits<float>::min() is positive, and bounds checking isn't meaningful here).

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.h (115386 => 115387)


--- branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.h	2012-04-27 00:00:27 UTC (rev 115386)
+++ branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.h	2012-04-27 00:00:44 UTC (rev 115387)
@@ -59,7 +59,7 @@
         value = ceiledValue;
     else if (proximityToNextInt >= 0.99 && value < 0)
         value = floor(value);
-    return ((value > std::numeric_limits<float>::max()) || (value < std::numeric_limits<float>::min())) ? 0 : static_cast<float>(value);
+    return static_cast<float>(value);
 }
 
 class CSSPrimitiveValue : public CSSValue {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to