Enable save/restore for frame state.

This commit is contained in:
nisheeth%netscape.com 1999-12-06 09:03:16 +00:00
Родитель 3734f5ebf8
Коммит acadf235d1
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);