mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Fix bustage.
This commit is contained in:
parent
82d2fed87b
commit
605c744e1f
@ -60,13 +60,6 @@
|
||||
// change the definition of nscoord in gfx/idl/gfxtypes.idl.
|
||||
//#define NS_COORD_IS_FLOAT
|
||||
|
||||
inline void VERIFY_COORD(nscoord aCoord) {
|
||||
#ifdef NS_COORD_IS_FLOAT
|
||||
NS_ASSERTION(floorf(aCoord) == aCoord,
|
||||
"Coords cannot have fractions");
|
||||
#endif
|
||||
}
|
||||
|
||||
inline float NS_IEEEPositiveInfinity() {
|
||||
float f;
|
||||
*(PRUint32*)&f = 0x7F800000;
|
||||
@ -88,6 +81,13 @@ typedef PRInt32 nscoord;
|
||||
|
||||
#define nscoord_MIN (-nscoord_MAX)
|
||||
|
||||
inline void VERIFY_COORD(nscoord aCoord) {
|
||||
#ifdef NS_COORD_IS_FLOAT
|
||||
NS_ASSERTION(floorf(aCoord) == aCoord,
|
||||
"Coords cannot have fractions");
|
||||
#endif
|
||||
}
|
||||
|
||||
inline nscoord NSCoordMultiply(nscoord aCoord, float aVal) {
|
||||
VERIFY_COORD(aCoord);
|
||||
#ifdef NS_COORD_IS_FLOAT
|
||||
|
Loading…
Reference in New Issue
Block a user