mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
Added some asserts to the incremental reflow code
This commit is contained in:
parent
fed9e11a74
commit
04e9ce1a5f
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user