Enable save/restore for frame state.

This commit is contained in:
nisheeth%netscape.com 1999-12-06 09:03:16 +00:00
parent 3734f5ebf8
commit acadf235d1
2 changed files with 4 additions and 6 deletions

View File

@ -4858,7 +4858,7 @@ nsCSSFrameConstructor::InitAndRestoreFrame(nsIPresContext* aPresContext
aStyleContext, aPrevInFlow);
if (aState.mFrameState && aState.mFrameManager) {
// aState.mFrameManager->RestoreFrameState(aPresContext, aNewFrame, aState.mFrameState);
aState.mFrameManager->RestoreFrameState(aPresContext, aNewFrame, aState.mFrameState);
}
return rv;
@ -8120,7 +8120,7 @@ nsCSSFrameConstructor::CaptureStateFor(nsIPresContext* aPresContext,
nsCOMPtr<nsIFrameManager> frameManager;
rv = presShell->GetFrameManager(getter_AddRefs(frameManager));
if (NS_SUCCEEDED(rv) && frameManager) {
// rv = frameManager->CaptureFrameState(aPresContext, aFrame, aHistoryState);
rv = frameManager->CaptureFrameState(aPresContext, aFrame, aHistoryState);
}
}
}
@ -9281,7 +9281,6 @@ nsCSSFrameConstructor::CreateTreeWidgetContent(nsIPresContext* aPresContext,
nsFrameItems frameItems;
nsFrameConstructorState state(aPresContext, mFixedContainingBlock,
GetAbsoluteContainingBlock(aPresContext, aParentFrame),
GetFloaterContainingBlock(aPresContext, aParentFrame),
aFrameState);

View File

@ -4858,7 +4858,7 @@ nsCSSFrameConstructor::InitAndRestoreFrame(nsIPresContext* aPresContext
aStyleContext, aPrevInFlow);
if (aState.mFrameState && aState.mFrameManager) {
// aState.mFrameManager->RestoreFrameState(aPresContext, aNewFrame, aState.mFrameState);
aState.mFrameManager->RestoreFrameState(aPresContext, aNewFrame, aState.mFrameState);
}
return rv;
@ -8120,7 +8120,7 @@ nsCSSFrameConstructor::CaptureStateFor(nsIPresContext* aPresContext,
nsCOMPtr<nsIFrameManager> frameManager;
rv = presShell->GetFrameManager(getter_AddRefs(frameManager));
if (NS_SUCCEEDED(rv) && frameManager) {
// rv = frameManager->CaptureFrameState(aPresContext, aFrame, aHistoryState);
rv = frameManager->CaptureFrameState(aPresContext, aFrame, aHistoryState);
}
}
}
@ -9281,7 +9281,6 @@ nsCSSFrameConstructor::CreateTreeWidgetContent(nsIPresContext* aPresContext,
nsFrameItems frameItems;
nsFrameConstructorState state(aPresContext, mFixedContainingBlock,
GetAbsoluteContainingBlock(aPresContext, aParentFrame),
GetFloaterContainingBlock(aPresContext, aParentFrame),
aFrameState);