Bug 905219 - BaseRect::IsFinite() now uses std::isfinite(), rather than NS_finite(). r=jrmuizel

This commit is contained in:
Milan Sreckovic 2013-08-14 12:29:47 -04:00
parent 91308095bd
commit 501c4cfc89

View File

@ -9,7 +9,6 @@
#include <cmath>
#include <mozilla/Assertions.h>
#include <algorithm>
#include "nsMathUtils.h"
namespace mozilla {
namespace gfx {
@ -60,10 +59,10 @@ struct BaseRect {
// "Finite" means not inf and not NaN
bool IsFinite() const
{
return (NS_finite(x) &&
NS_finite(y) &&
NS_finite(width) &&
NS_finite(height));
return (std::isfinite(x) &&
std::isfinite(y) &&
std::isfinite(width) &&
std::isfinite(height));
}
// Returns true if this rectangle contains the interior of aRect. Always