Bug 587484 - warning: suggest parentheses around assignment used as truth value in while (... = GetNextContinuation())

r+a=dbaron
This commit is contained in:
timeless@mozdev.org 2011-02-16 14:14:14 +01:00
parent f94aa928dd
commit 262e601c9f
2 changed files with 3 additions and 3 deletions

View File

@ -7668,7 +7668,7 @@ UpdateViewsForTree(nsIFrame* aFrame, nsIViewManager* aViewManager,
do {
DoApplyRenderingChangeToTree(outOfFlowFrame, aViewManager,
aFrameManager, aChange);
} while (outOfFlowFrame = outOfFlowFrame->GetNextContinuation());
} while ((outOfFlowFrame = outOfFlowFrame->GetNextContinuation()));
} else if (childList == nsGkAtoms::popupList) {
DoApplyRenderingChangeToTree(child, aViewManager,
aFrameManager, aChange);

View File

@ -778,7 +778,7 @@ nsFrameManager::ReparentStyleContext(nsIFrame* aFrame)
NS_ASSERTION(outOfFlow, "no out-of-flow frame");
do {
ReparentStyleContext(outOfFlow);
} while (outOfFlow = outOfFlow->GetNextContinuation());
} while ((outOfFlow = outOfFlow->GetNextContinuation()));
}
// DO NOT verify the style tree before reparenting. The frame
@ -1498,7 +1498,7 @@ nsFrameManager::ReResolveStyleContext(nsPresContext *aPresContext,
aRestyleTracker,
kidsDesiredA11yNotification,
aVisibleKidsOfHiddenElement);
} while (outOfFlowFrame = outOfFlowFrame->GetNextContinuation());
} while ((outOfFlowFrame = outOfFlowFrame->GetNextContinuation()));
// reresolve placeholder's context under the same parent
// as the out-of-flow frame