Added some asserts to the incremental reflow code

This commit is contained in:
troy 1998-06-24 22:05:59 +00:00
parent fed9e11a74
commit 04e9ce1a5f
6 changed files with 36 additions and 0 deletions

View File

@ -1075,6 +1075,12 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext* aPresContext,
}
if (eReflowReason_Incremental == aReflowState.reason) {
nsIFrame* target;
aReflowState.reflowCommand->GetTarget(target);
if (this == target) {
NS_NOTYETIMPLEMENTED("unexpected reflow command");
}
// XXX Deal with the case where the reflow command is targeted at us
nsIFrame* kidFrame;
aReflowState.reflowCommand->GetNext(kidFrame);

View File

@ -1122,6 +1122,12 @@ nsTableRowFrame::Reflow(nsIPresContext* aPresContext,
mContentParent->GetContentParent((nsIFrame*&)(state.tableFrame));
if (eReflowReason_Incremental == aReflowState.reason) {
nsIFrame* target;
aReflowState.reflowCommand->GetTarget(target);
if (this == target) {
NS_NOTYETIMPLEMENTED("unexpected reflow command");
}
// XXX Recover state
// XXX Deal with the case where the reflow command is targeted at us
nsIFrame* kidFrame;

View File

@ -846,6 +846,12 @@ nsTableRowGroupFrame::Reflow(nsIPresContext* aPresContext,
#endif
if (eReflowReason_Incremental == aReflowState.reason) {
nsIFrame* target;
aReflowState.reflowCommand->GetTarget(target);
if (this == target) {
NS_NOTYETIMPLEMENTED("unexpected reflow command");
}
// XXX Recover state
// XXX Deal with the case where the reflow command is targeted at us
nsIFrame* kidFrame;

View File

@ -1075,6 +1075,12 @@ NS_METHOD nsTableFrame::Reflow(nsIPresContext* aPresContext,
}
if (eReflowReason_Incremental == aReflowState.reason) {
nsIFrame* target;
aReflowState.reflowCommand->GetTarget(target);
if (this == target) {
NS_NOTYETIMPLEMENTED("unexpected reflow command");
}
// XXX Deal with the case where the reflow command is targeted at us
nsIFrame* kidFrame;
aReflowState.reflowCommand->GetNext(kidFrame);

View File

@ -1122,6 +1122,12 @@ nsTableRowFrame::Reflow(nsIPresContext* aPresContext,
mContentParent->GetContentParent((nsIFrame*&)(state.tableFrame));
if (eReflowReason_Incremental == aReflowState.reason) {
nsIFrame* target;
aReflowState.reflowCommand->GetTarget(target);
if (this == target) {
NS_NOTYETIMPLEMENTED("unexpected reflow command");
}
// XXX Recover state
// XXX Deal with the case where the reflow command is targeted at us
nsIFrame* kidFrame;

View File

@ -846,6 +846,12 @@ nsTableRowGroupFrame::Reflow(nsIPresContext* aPresContext,
#endif
if (eReflowReason_Incremental == aReflowState.reason) {
nsIFrame* target;
aReflowState.reflowCommand->GetTarget(target);
if (this == target) {
NS_NOTYETIMPLEMENTED("unexpected reflow command");
}
// XXX Recover state
// XXX Deal with the case where the reflow command is targeted at us
nsIFrame* kidFrame;