Title: [107979] branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h
- Revision
- 107979
- Author
- le...@chromium.org
- Date
- 2012-02-16 14:22:48 -0800 (Thu, 16 Feb 2012)
Log Message
Changing the isInBounds asserts to use less than equals, instead of less than.
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h (107978 => 107979)
--- branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h 2012-02-16 22:03:33 UTC (rev 107978)
+++ branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h 2012-02-16 22:22:48 UTC (rev 107979)
@@ -111,15 +111,15 @@
private:
inline bool isInBounds(int value)
{
- return ::abs(value) < std::numeric_limits<int>::max() / kFixedPointDenominator;
+ return ::abs(value) <= std::numeric_limits<int>::max() / kFixedPointDenominator;
}
inline bool isInBounds(unsigned value)
{
- return value < static_cast<unsigned>(std::numeric_limits<int>::max()) / kFixedPointDenominator;
+ return value <= static_cast<unsigned>(std::numeric_limits<int>::max()) / kFixedPointDenominator;
}
inline bool isInBounds(double value)
{
- return ::abs(value) < std::numeric_limits<int>::max() / kFixedPointDenominator;
+ return ::abs(value) <= std::numeric_limits<int>::max() / kFixedPointDenominator;
}
int m_value;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes