зеркало из https://github.com/mozilla/gecko-dev.git
Some asserts for me
This commit is contained in:
Родитель
d7bf08c6f6
Коммит
2f71be6002
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче