зеркало из https://github.com/mozilla/gecko-dev.git
Bail out early if we have no area to invalidate anyway. Bug 224871, r+sr=roc
This commit is contained in:
Родитель
6b5fac0f1a
Коммит
9269dd2002
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче