Open
Bug 761434
Opened 14 years ago
Updated 4 years ago
Debug code in nsBoxFrame references an unknown variable 'maxElementSize'
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
NEW
People
(Reporter: jwir3, Unassigned)
Details
The following code is in nsButtonBoxFrame::Reflow:
#ifdef DO_NOISY_REFLOW
{
printf("%p ** nsBF(done) W:%d H:%d ", this, aDesiredSize.width, aDesiredSize.height);
if (maxElementSize) {
printf("MW:%d\n", *maxElementWidth);
} else {
printf("MW:?\n");
}
}
#endif
However, even if DO_NOISY_REFLOW is defined, maxElementSize and maxElementWidth are variables that aren't defined anywhere (they probably were defined at one point, but have since been removed).
We should remove this code, since if DO_NOISY_REFLOW is defined, these variables become undefined references.
Also, we should probably remove DO_NOISY_REFLOW and just have the #ifdef be NOISY_REFLOW, since that matches the other classes.
| Reporter | ||
Updated•14 years ago
|
OS: Linux → All
Hardware: x86_64 → All
| Reporter | ||
Comment 1•14 years ago
|
||
BTW, I meant nsBoxFrame::Reflow, not nsButtonBoxFrame::Reflow.
Summary: Debug code in nsButtonBoxFrame references an unknown variable 'maxElementSize' → Debug code in nsBoxFrame references an unknown variable 'maxElementSize'
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•