Bug 1323517 Part 2 - Remove float debug log that requires manual #define. r=jfkthame

These are small printf statements that are not build by CI, which increase
maintenance burden.

Differential Revision: https://phabricator.services.mozilla.com/D151204
This commit is contained in:
Ting-Yu Lin 2022-07-07 19:01:54 +00:00
Родитель ed00bfdbb9
Коммит 0b0c4753f9
3 изменённых файлов: 2 добавлений и 22 удалений

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

@ -1017,12 +1017,6 @@ BlockReflowState::ClearFloats(nscoord aBCoord, StyleClear aBreakType,
}
#endif
#ifdef NOISY_FLOAT_CLEARING
printf("BlockReflowState::ClearFloats: aBCoord=%d breakType=%s\n", aBCoord,
nsLineBox::BreakTypeToString(aBreakType));
FloatManager()->List(stdout);
#endif
if (!FloatManager()->HasAnyFloats()) {
return {aBCoord, ClearFloatsResult::BCoordNoChange};
}

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

@ -9,11 +9,8 @@
#undef NOISY_FIRST_LETTER // enables debug output for first-letter specific
// layout
#undef NOISY_FLOAT // enables debug output for float reflow (the in/out metrics
// for the floated block)
#undef NOISY_FLOAT_CLEARING
#undef NOISY_FINAL_SIZE // enables debug output for desired width/height
// computation, once all children have been reflowed
#undef NOISY_FINAL_SIZE // enables debug output for desired width/height
// computation, once all children have been reflowed
#undef NOISY_REMOVE_FRAME
#undef NOISY_COMBINED_AREA // enables debug output for combined area
// computation

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

@ -6658,12 +6658,6 @@ void nsBlockFrame::ReflowFloat(BlockReflowState& aState,
"aFloat must be an out-of-flow frame");
WritingMode wm = aState.mReflowInput.GetWritingMode();
#ifdef NOISY_FLOAT
printf("Reflow Float %p in parent %p, availSpace(%d,%d,%d,%d)\n", aFloat,
this, aAdjustedAvailableSpace.IStart(wm),
aAdjustedAvailableSpace.BStart(wm), aAdjustedAvailableSpace.ISize(wm),
aAdjustedAvailableSpace.BSize(wm));
#endif
ReflowInput floatRS(
aState.mPresContext, aState.mReflowInput, aFloat,
@ -6749,11 +6743,6 @@ void nsBlockFrame::ReflowFloat(BlockReflowState& aState,
// Pass floatRS so the frame hierarchy can be used (redoFloatRS has the same
// hierarchy)
aFloat->DidReflow(aState.mPresContext, &floatRS);
#ifdef NOISY_FLOAT
printf("end ReflowFloat %p, sized to %d,%d\n", aFloat, metrics.Width(),
metrics.Height());
#endif
}
StyleClear nsBlockFrame::FindTrailingClear() {