зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug #14414. Changed DoRemoveFrame() to invalidate the space taken
up by the line when deleting an empty line
This commit is contained in:
Родитель
531f66367a
Коммит
fef9b919ac
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче