Bug 1236920 - remvoed usless null check on aKidFrame in order to silence Coveirty warning. r=mwoodrow

This commit is contained in:
Bogdan Postelnicu 2016-01-05 06:20:00 +01:00
parent 7a7bbbb341
commit 37f20535b6

View File

@ -354,11 +354,9 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
if (nsBlockFrame::gNoisyReflow) { if (nsBlockFrame::gNoisyReflow) {
nsFrame::IndentBy(stdout,nsBlockFrame::gNoiseIndent); nsFrame::IndentBy(stdout,nsBlockFrame::gNoiseIndent);
printf("abs pos "); printf("abs pos ");
if (aKidFrame) { nsAutoString name;
nsAutoString name; aKidFrame->GetFrameName(name);
aKidFrame->GetFrameName(name); printf("%s ", NS_LossyConvertUTF16toASCII(name).get());
printf("%s ", NS_LossyConvertUTF16toASCII(name).get());
}
char width[16]; char width[16];
char height[16]; char height[16];
@ -510,11 +508,9 @@ nsAbsoluteContainingBlock::ReflowAbsoluteFrame(nsIFrame* aDelegat
if (nsBlockFrame::gNoisyReflow) { if (nsBlockFrame::gNoisyReflow) {
nsFrame::IndentBy(stdout,nsBlockFrame::gNoiseIndent - 1); nsFrame::IndentBy(stdout,nsBlockFrame::gNoiseIndent - 1);
printf("abs pos "); printf("abs pos ");
if (aKidFrame) { nsAutoString name;
nsAutoString name; aKidFrame->GetFrameName(name);
aKidFrame->GetFrameName(name); printf("%s ", NS_LossyConvertUTF16toASCII(name).get());
printf("%s ", NS_LossyConvertUTF16toASCII(name).get());
}
printf("%p rect=%d,%d,%d,%d\n", static_cast<void*>(aKidFrame), printf("%p rect=%d,%d,%d,%d\n", static_cast<void*>(aKidFrame),
r.x, r.y, r.width, r.height); r.x, r.y, r.width, r.height);
} }