From a81a271ade9913891c309be09dbec8d7dead06c4 Mon Sep 17 00:00:00 2001 From: "jruderman@hmc.edu" Date: Mon, 11 Feb 2008 09:13:34 -0800 Subject: [PATCH] Remove redundant |if| around assertion (bug 416645). r+sr=roc, a=schrep --- layout/generic/nsBlockFrame.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/layout/generic/nsBlockFrame.cpp b/layout/generic/nsBlockFrame.cpp index 5a187e96b002..bec13776c872 100644 --- a/layout/generic/nsBlockFrame.cpp +++ b/layout/generic/nsBlockFrame.cpp @@ -4440,10 +4440,8 @@ nsBlockFrame::DrainOverflowLines(nsBlockReflowState& aState) nsIFrame* next; for (nsPlaceholderFrame* f = static_cast(line->mFirstChild); n > 0; --n, f = static_cast(next)) { - if (!IsContinuationPlaceholder(f)) { - NS_ASSERTION(IsContinuationPlaceholder(f), - "Line frames should all be continuation placeholders"); - } + NS_ASSERTION(IsContinuationPlaceholder(f), + "Line frames should all be continuation placeholders"); next = f->GetNextSibling(); nsIFrame* fpif = f->GetPrevInFlow(); nsIFrame* oof = f->GetOutOfFlowFrame();