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:
parent
8cdab89276
commit
bb46cb1eff
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user