Skip to content

Commit

Permalink
Bug 1523582 Part 1 - Use NOISY_BLOCK_DIR_MARGINS to control log print…
Browse files Browse the repository at this point in the history
… in nsBlockReflowContext. r=dbaron

nsBlockDebugFlags.h defines NOISY_BLOCK_DIR_MARGINS, which is used in
nsBlockFrame. Include it in nsBlockReflowContext.cpp so that when
NOISY_BLOCK_DIR_MARGINS is defined, the log is printed in
nsBlockReflowContext.cpp as well.

Remove unused NOISY_MAX_ELEMENT_SIZE and REALLY_NOISY_MAX_ELEMENT_SIZE.

Differential Revision: https://phabricator.services.mozilla.com/D43903

UltraBlame original commit: 1533c2919c7c92860c1db544336bfeb70f3965d1
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent de2e35c commit c5ad547
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions layout/generic/nsBlockReflowContext.cpp
Expand Up @@ -62,25 +62,12 @@ mozilla
ifdef
DEBUG
#
undef
NOISY_MAX_ELEMENT_SIZE
#
undef
REALLY_NOISY_MAX_ELEMENT_SIZE
#
undef
NOISY_BLOCK_DIR_MARGINS
#
else
#
undef
NOISY_MAX_ELEMENT_SIZE
#
undef
REALLY_NOISY_MAX_ELEMENT_SIZE
#
undef
NOISY_BLOCK_DIR_MARGINS
include
"
nsBlockDebugFlags
.
h
"
#
endif
nsBlockReflowContext
Expand Down Expand Up @@ -275,7 +262,7 @@ parentWM
;
#
ifdef
NOISY_BLOCKDIR_MARGINS
NOISY_BLOCK_DIR_MARGINS
aRI
.
mFrame
Expand Down Expand Up @@ -995,7 +982,7 @@ IsEmpty
}
#
ifdef
NOISY_BLOCKDIR_MARGINS
NOISY_BLOCK_DIR_MARGINS
aRI
.
mFrame
Expand Down Expand Up @@ -1118,7 +1105,7 @@ aPrevMargin
;
#
ifdef
NOISY_BLOCKDIR_MARGINS
NOISY_BLOCK_DIR_MARGINS
mOuterReflowInput
.
mFrame
Expand Down Expand Up @@ -1873,7 +1860,7 @@ mBStartMargin
;
#
ifdef
NOISY_BLOCKDIR_MARGINS
NOISY_BLOCK_DIR_MARGINS
printf
(
"
Expand Down

0 comments on commit c5ad547

Please sign in to comment.