Bug 817774 - Let nsIntRect not have a nsIntRect static data member, as that kills GDB printing it - r=dholbert

This commit is contained in:
Benoit Jacob 2012-12-17 16:59:53 -05:00
Родитель 7b44505aa0
Коммит f462597ba7
2 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -12,9 +12,6 @@
// the mozilla::css::Side sequence must match the nsMargin nscoord sequence
PR_STATIC_ASSERT((NS_SIDE_TOP == 0) && (NS_SIDE_RIGHT == 1) && (NS_SIDE_BOTTOM == 2) && (NS_SIDE_LEFT == 3));
/* static */
const nsIntRect nsIntRect::kMaxSizedIntRect(0, 0, INT_MAX, INT_MAX);
#ifdef DEBUG
// Diagnostics

Просмотреть файл

@ -231,16 +231,16 @@ struct NS_GFX nsIntRect :
// Returns a special nsIntRect that's used in some places to signify
// "all available space".
static const nsIntRect& GetMaxSizedIntRect() { return kMaxSizedIntRect; }
static const nsIntRect& GetMaxSizedIntRect() {
static const nsIntRect r(0, 0, INT_MAX, INT_MAX);
return r;
}
// This is here only to keep IPDL-generated code happy. DO NOT USE.
bool operator==(const nsIntRect& aRect) const
{
return IsEqualEdges(aRect);
}
protected:
static const nsIntRect kMaxSizedIntRect;
};
/*