mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 905219 - BaseRect::IsFinite() now uses std::isfinite(), rather than NS_finite(). r=jrmuizel
This commit is contained in:
parent
91308095bd
commit
501c4cfc89
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user