Title: [107866] branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h
- Revision
- 107866
- Author
- [email protected]
- Date
- 2012-02-15 18:25:31 -0800 (Wed, 15 Feb 2012)
Log Message
Readd std constructs for FractionalLayoutUnit on branch, for now
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h (107865 => 107866)
--- branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h 2012-02-16 02:24:35 UTC (rev 107865)
+++ branches/subpixellayout/Source/WebCore/platform/FractionalLayoutUnit.h 2012-02-16 02:25:31 UTC (rev 107866)
@@ -503,6 +503,60 @@
return (location + size).round() - location.round();
}
+namespace std {
+ template<>
+ struct numeric_limits<WebCore::FractionalLayoutUnit>
+ {
+ static const bool is_specialized = true;
+
+ static WebCore::FractionalLayoutUnit min() throw()
+ { return WebCore::FractionalLayoutUnit::min(); }
+ static WebCore::FractionalLayoutUnit max() throw()
+ { return WebCore::FractionalLayoutUnit::max(); }
+
+ static const int digits = 10;
+ static const int digits10 = 10;
+ static const bool is_signed = true;
+ static const bool is_integer = true;
+ static const bool is_exact = true;
+ static const int radix = 2;
+ static WebCore::FractionalLayoutUnit epsilon() throw()
+ { return 0; }
+ static WebCore::FractionalLayoutUnit round_error() throw()
+ { return 0; }
+
+ static const int min_exponent = 0;
+ static const int min_exponent10 = 0;
+ static const int max_exponent = 0;
+ static const int max_exponent10 = 0;
+
+ static const bool has_infinity = false;
+ static const bool has_quiet_NaN = false;
+ static const bool has_signaling_NaN = false;
+ static const float_denorm_style has_denorm = denorm_absent;
+ static const bool has_denorm_loss = false;
+
+ static WebCore::FractionalLayoutUnit infinity() throw()
+ { return static_cast<WebCore::FractionalLayoutUnit>(0); }
+ static WebCore::FractionalLayoutUnit quiet_NaN() throw()
+ { return static_cast<WebCore::FractionalLayoutUnit>(0); }
+ static WebCore::FractionalLayoutUnit signaling_NaN() throw()
+ { return static_cast<WebCore::FractionalLayoutUnit>(0); }
+ static WebCore::FractionalLayoutUnit denorm_min() throw()
+ { return static_cast<WebCore::FractionalLayoutUnit>(0); }
+
+ static const bool is_iec559 = false;
+ static const bool is_bounded = true;
+ static const bool is_modulo = true;
+
+ static const bool traps = false; //__glibcxx_integral_traps;
+ static const bool tinyness_before = false;
+ static const float_round_style round_style = round_toward_zero;
+
+ };
+}
+
+
} // namespace WebCore
#endif // FractionalLayoutUnit_h
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes