Bail out early if we have no area to invalidate anyway. Bug 224871, r+sr=roc

This commit is contained in:
bzbarsky%mit.edu 2003-11-07 03:00:30 +00:00
Родитель 6b5fac0f1a
Коммит 9269dd2002
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -649,6 +649,11 @@ nsHTMLContainerFrame::CheckInvalidateSizeChange(nsIPresContext* aPresContext,
}
}
if (mRect.IsEmpty()) {
// nothing else to do here
return;
}
// Invalidate the old frame if the frame has borders. Those borders
// may be moving.
const nsStyleBorder* border = GetStyleBorder();

Просмотреть файл

@ -649,6 +649,11 @@ nsHTMLContainerFrame::CheckInvalidateSizeChange(nsIPresContext* aPresContext,
}
}
if (mRect.IsEmpty()) {
// nothing else to do here
return;
}
// Invalidate the old frame if the frame has borders. Those borders
// may be moving.
const nsStyleBorder* border = GetStyleBorder();