From 85fd1c88be49985cb4e86a94fabeb11445be4f0a Mon Sep 17 00:00:00 2001 From: "smontagu%smontagu.org" Date: Mon, 21 Apr 2008 07:17:04 +0000 Subject: [PATCH] Assert that the nsContinuingTextFrame is not a first continuation. Bug 414760, r+sr=roc git-svn-id: svn://10.0.0.236/trunk@250538 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsTextFrameThebes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/layout/generic/nsTextFrameThebes.cpp b/mozilla/layout/generic/nsTextFrameThebes.cpp index 05350d37fe8..81c036dc55d 100644 --- a/mozilla/layout/generic/nsTextFrameThebes.cpp +++ b/mozilla/layout/generic/nsTextFrameThebes.cpp @@ -3270,6 +3270,9 @@ nsContinuingTextFrame::GetFirstContinuation() const nsIFrame *firstContinuation, *previous = const_cast (static_cast(mPrevContinuation)); + + NS_ASSERTION(previous, "How can an nsContinuingTextFrame be the first continuation?"); + do { firstContinuation = previous; previous = firstContinuation->GetPrevContinuation();