Fix for bug #14414. Changed DoRemoveFrame() to invalidate the space taken

up by the line when deleting an empty line


git-svn-id: svn://10.0.0.236/trunk@48505 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 1999-09-21 05:15:39 +00:00
parent 8cdab89276
commit bb46cb1eff
6 changed files with 30 additions and 0 deletions

View File

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

View File

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

View File

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

View File

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

View File

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}

View File

@ -4674,6 +4674,11 @@ nsBlockFrame::DoRemoveFrame(nsIPresContext* aPresContext,
if (0 == --line->mChildCount) {
*linep = next;
line->mNext = nsnull;
// Invalidate the space taken up by the line.
// XXX We need to do this if we're removing a frame as a result of
// a call to RemoveFrame(), but we may not need to do this in all
// cases...
Invalidate(line->mCombinedArea);
delete line;
line = next;
}