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:
parent
13a9ad61ab
commit
c681a0e72f
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user