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

git-svn-id: svn://10.0.0.236/trunk@148947 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2003-11-07 03:00:30 +00:00
parent 13a9ad61ab
commit c681a0e72f
2 changed files with 10 additions and 0 deletions

View File

@ -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();

View File

@ -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();