Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson

This commit is contained in:
warren@netscape.com
2000-10-27 22:43:51 +00:00
parent faa6665213
commit 7730ce0cd3
666 changed files with 9691 additions and 7587 deletions

View File

@@ -516,21 +516,19 @@ void ButtonHack(nsHTMLReflowState& aReflowState, char* aMessage)
if ((aReflowState.mComputedWidth != NS_INTRINSICSIZE) &&
(aReflowState.mComputedWidth > aReflowState.availableWidth) &&
(aReflowState.availableWidth > 0)) {
// printf("BUG - %s has a computed width = %d, available width = %d \n",
// aMessage, aReflowState.mComputedWidth, aReflowState.availableWidth);
// PRINTF("BUG - %s has a computed width = %d, available width = %d \n",
// aMessage, aReflowState.mComputedWidth, aReflowState.availableWidth));
aReflowState.mComputedWidth = aReflowState.availableWidth;
}
if (aReflowState.mComputedHeight == 0) {
} if (aReflowState.mComputedHeight == 0) {
aReflowState.mComputedHeight = aReflowState.availableHeight;
}
if ((aReflowState.mComputedHeight != NS_INTRINSICSIZE) &&
(aReflowState.mComputedHeight > aReflowState.availableHeight) &&
(aReflowState.availableHeight > 0)) {
// printf("BUG - %s has a computed height = %d, available height = %d \n",
// aMessage, aReflowState.mComputedHeight, aReflowState.availableHeight);
// PRINTF("BUG - %s has a computed height = %d, available height = %d \n",
// aMessage, aReflowState.mComputedHeight, aReflowState.availableHeight));
aReflowState.mComputedHeight = aReflowState.availableHeight;
}
}
}}
NS_IMETHODIMP
nsHTMLButtonControlFrame::AddComputedBorderPaddingToDesiredSize(nsHTMLReflowMetrics& aDesiredSize,