зеркало из https://github.com/mozilla/pjs.git
Some asserts for me
This commit is contained in:
Родитель
9fc30d4717
Коммит
8091fca848
|
@ -92,6 +92,14 @@ nsBlockBandData::GetAvailableSpace(nscoord aY)
|
|||
if (NS_UNCONSTRAINEDSIZE == mSpace.width) {
|
||||
mAvailSpace.width = NS_UNCONSTRAINEDSIZE;
|
||||
}
|
||||
#ifdef DEBUG_kipp
|
||||
if (mAvailSpace.width != NS_UNCONSTRAINEDSIZE) {
|
||||
NS_ASSERTION((mAvailSpace.width > -200000) && (mAvailSpace.width < 200000), "oy");
|
||||
}
|
||||
if (mAvailSpace.height != NS_UNCONSTRAINEDSIZE) {
|
||||
NS_ASSERTION((mAvailSpace.height > -200000) && (mAvailSpace.height < 200000), "oy");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -92,6 +92,14 @@ nsBlockBandData::GetAvailableSpace(nscoord aY)
|
|||
if (NS_UNCONSTRAINEDSIZE == mSpace.width) {
|
||||
mAvailSpace.width = NS_UNCONSTRAINEDSIZE;
|
||||
}
|
||||
#ifdef DEBUG_kipp
|
||||
if (mAvailSpace.width != NS_UNCONSTRAINEDSIZE) {
|
||||
NS_ASSERTION((mAvailSpace.width > -200000) && (mAvailSpace.width < 200000), "oy");
|
||||
}
|
||||
if (mAvailSpace.height != NS_UNCONSTRAINEDSIZE) {
|
||||
NS_ASSERTION((mAvailSpace.height > -200000) && (mAvailSpace.height < 200000), "oy");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче