зеркало из https://github.com/mozilla/pjs.git
Added ASSERT for the case where we get passed a reflow reason of initial
when we've already been reflowed once
This commit is contained in:
Родитель
c3ec2ea3a9
Коммит
a4f2401d33
|
@ -401,6 +401,8 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext& aPresContext,
|
|||
|
||||
} else {
|
||||
if (eReflowReason_Initial == aReflowState.reason) {
|
||||
NS_ASSERTION(nsnull == mFirstChild, "unexpected reflow reason");
|
||||
|
||||
// Set up our kids. They're already present, on an overflow list,
|
||||
// or there are none so we'll create them now
|
||||
MoveOverflowToChildList();
|
||||
|
|
|
@ -401,6 +401,8 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext& aPresContext,
|
|||
|
||||
} else {
|
||||
if (eReflowReason_Initial == aReflowState.reason) {
|
||||
NS_ASSERTION(nsnull == mFirstChild, "unexpected reflow reason");
|
||||
|
||||
// Set up our kids. They're already present, on an overflow list,
|
||||
// or there are none so we'll create them now
|
||||
MoveOverflowToChildList();
|
||||
|
|
Загрузка…
Ссылка в новой задаче