mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Assert that reflow reason is correct
This commit is contained in:
parent
b9d5409399
commit
fd620819d3
@ -140,11 +140,14 @@ NS_METHOD nsBodyFrame::Reflow(nsIPresContext* aPresContext,
|
||||
aStatus = NS_FRAME_COMPLETE; // initialize out parameter
|
||||
|
||||
// Do we have any children?
|
||||
// XXX Verify the reason is eReflowReason_Initial...
|
||||
if (nsnull == mFirstChild) {
|
||||
// No, create a pseudo block frame
|
||||
NS_ASSERTION(eReflowReason_Initial == aReflowState.reason, "bad reason");
|
||||
CreateColumnFrame(aPresContext);
|
||||
}
|
||||
else {
|
||||
NS_ASSERTION(eReflowReason_Initial != aReflowState.reason, "bad reason");
|
||||
}
|
||||
|
||||
if (eReflowReason_Incremental == aReflowState.reason) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user