b=16456. Removed some debug assertion code that was incorrect and caused
us to hit asserts when printing git-svn-id: svn://10.0.0.236/trunk@55646 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4227,14 +4227,16 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState)
|
||||
nsLineBox* lastLine = aState.mPrevLine;
|
||||
nsLineBox* nextLine = lastLine->mNext;
|
||||
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
if (nextLine) {
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
// Break frame sibling list
|
||||
@@ -6291,15 +6293,12 @@ nsBlockFrame::VerifyLines(PRBool aFinalCheckOK)
|
||||
void
|
||||
nsBlockFrame::VerifyOverflowSituation(nsIPresContext* aPresContext)
|
||||
{
|
||||
PRBool haveOverflow = PR_FALSE;
|
||||
nsBlockFrame* flow = (nsBlockFrame*) GetFirstInFlow();
|
||||
while (nsnull != flow) {
|
||||
nsLineBox* overflowLines = GetOverflowLines(aPresContext, PR_FALSE);
|
||||
if (nsnull != overflowLines) {
|
||||
NS_ASSERTION(nsnull != overflowLines->mFirstChild,
|
||||
"bad overflow list");
|
||||
NS_ASSERTION(!haveOverflow, "two frames with overflow lists");
|
||||
haveOverflow = PR_TRUE;
|
||||
}
|
||||
flow = (nsBlockFrame*) flow->mNextInFlow;
|
||||
}
|
||||
|
||||
@@ -4227,14 +4227,16 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState)
|
||||
nsLineBox* lastLine = aState.mPrevLine;
|
||||
nsLineBox* nextLine = lastLine->mNext;
|
||||
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
if (nextLine) {
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
// Break frame sibling list
|
||||
@@ -6291,15 +6293,12 @@ nsBlockFrame::VerifyLines(PRBool aFinalCheckOK)
|
||||
void
|
||||
nsBlockFrame::VerifyOverflowSituation(nsIPresContext* aPresContext)
|
||||
{
|
||||
PRBool haveOverflow = PR_FALSE;
|
||||
nsBlockFrame* flow = (nsBlockFrame*) GetFirstInFlow();
|
||||
while (nsnull != flow) {
|
||||
nsLineBox* overflowLines = GetOverflowLines(aPresContext, PR_FALSE);
|
||||
if (nsnull != overflowLines) {
|
||||
NS_ASSERTION(nsnull != overflowLines->mFirstChild,
|
||||
"bad overflow list");
|
||||
NS_ASSERTION(!haveOverflow, "two frames with overflow lists");
|
||||
haveOverflow = PR_TRUE;
|
||||
}
|
||||
flow = (nsBlockFrame*) flow->mNextInFlow;
|
||||
}
|
||||
|
||||
@@ -4227,14 +4227,16 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState)
|
||||
nsLineBox* lastLine = aState.mPrevLine;
|
||||
nsLineBox* nextLine = lastLine->mNext;
|
||||
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
if (nextLine) {
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
// Break frame sibling list
|
||||
@@ -6291,15 +6293,12 @@ nsBlockFrame::VerifyLines(PRBool aFinalCheckOK)
|
||||
void
|
||||
nsBlockFrame::VerifyOverflowSituation(nsIPresContext* aPresContext)
|
||||
{
|
||||
PRBool haveOverflow = PR_FALSE;
|
||||
nsBlockFrame* flow = (nsBlockFrame*) GetFirstInFlow();
|
||||
while (nsnull != flow) {
|
||||
nsLineBox* overflowLines = GetOverflowLines(aPresContext, PR_FALSE);
|
||||
if (nsnull != overflowLines) {
|
||||
NS_ASSERTION(nsnull != overflowLines->mFirstChild,
|
||||
"bad overflow list");
|
||||
NS_ASSERTION(!haveOverflow, "two frames with overflow lists");
|
||||
haveOverflow = PR_TRUE;
|
||||
}
|
||||
flow = (nsBlockFrame*) flow->mNextInFlow;
|
||||
}
|
||||
|
||||
@@ -4227,14 +4227,16 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState)
|
||||
nsLineBox* lastLine = aState.mPrevLine;
|
||||
nsLineBox* nextLine = lastLine->mNext;
|
||||
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
if (nextLine) {
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
// Break frame sibling list
|
||||
@@ -6291,15 +6293,12 @@ nsBlockFrame::VerifyLines(PRBool aFinalCheckOK)
|
||||
void
|
||||
nsBlockFrame::VerifyOverflowSituation(nsIPresContext* aPresContext)
|
||||
{
|
||||
PRBool haveOverflow = PR_FALSE;
|
||||
nsBlockFrame* flow = (nsBlockFrame*) GetFirstInFlow();
|
||||
while (nsnull != flow) {
|
||||
nsLineBox* overflowLines = GetOverflowLines(aPresContext, PR_FALSE);
|
||||
if (nsnull != overflowLines) {
|
||||
NS_ASSERTION(nsnull != overflowLines->mFirstChild,
|
||||
"bad overflow list");
|
||||
NS_ASSERTION(!haveOverflow, "two frames with overflow lists");
|
||||
haveOverflow = PR_TRUE;
|
||||
}
|
||||
flow = (nsBlockFrame*) flow->mNextInFlow;
|
||||
}
|
||||
|
||||
@@ -4227,14 +4227,16 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState)
|
||||
nsLineBox* lastLine = aState.mPrevLine;
|
||||
nsLineBox* nextLine = lastLine->mNext;
|
||||
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
if (nextLine) {
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
// Break frame sibling list
|
||||
@@ -6291,15 +6293,12 @@ nsBlockFrame::VerifyLines(PRBool aFinalCheckOK)
|
||||
void
|
||||
nsBlockFrame::VerifyOverflowSituation(nsIPresContext* aPresContext)
|
||||
{
|
||||
PRBool haveOverflow = PR_FALSE;
|
||||
nsBlockFrame* flow = (nsBlockFrame*) GetFirstInFlow();
|
||||
while (nsnull != flow) {
|
||||
nsLineBox* overflowLines = GetOverflowLines(aPresContext, PR_FALSE);
|
||||
if (nsnull != overflowLines) {
|
||||
NS_ASSERTION(nsnull != overflowLines->mFirstChild,
|
||||
"bad overflow list");
|
||||
NS_ASSERTION(!haveOverflow, "two frames with overflow lists");
|
||||
haveOverflow = PR_TRUE;
|
||||
}
|
||||
flow = (nsBlockFrame*) flow->mNextInFlow;
|
||||
}
|
||||
|
||||
@@ -4227,14 +4227,16 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState)
|
||||
nsLineBox* lastLine = aState.mPrevLine;
|
||||
nsLineBox* nextLine = lastLine->mNext;
|
||||
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
if (nextLine) {
|
||||
lastLine->mNext = nsnull;
|
||||
SetOverflowLines(aState.mPresContext, nextLine);
|
||||
|
||||
// Mark all the overflow lines dirty so that they get reflowed when
|
||||
// they are pulled up by our next-in-flow.
|
||||
while (nsnull != nextLine) {
|
||||
nextLine->MarkDirty();
|
||||
nextLine = nextLine->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
// Break frame sibling list
|
||||
@@ -6291,15 +6293,12 @@ nsBlockFrame::VerifyLines(PRBool aFinalCheckOK)
|
||||
void
|
||||
nsBlockFrame::VerifyOverflowSituation(nsIPresContext* aPresContext)
|
||||
{
|
||||
PRBool haveOverflow = PR_FALSE;
|
||||
nsBlockFrame* flow = (nsBlockFrame*) GetFirstInFlow();
|
||||
while (nsnull != flow) {
|
||||
nsLineBox* overflowLines = GetOverflowLines(aPresContext, PR_FALSE);
|
||||
if (nsnull != overflowLines) {
|
||||
NS_ASSERTION(nsnull != overflowLines->mFirstChild,
|
||||
"bad overflow list");
|
||||
NS_ASSERTION(!haveOverflow, "two frames with overflow lists");
|
||||
haveOverflow = PR_TRUE;
|
||||
}
|
||||
flow = (nsBlockFrame*) flow->mNextInFlow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user