mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Enable save/restore for frame state.
This commit is contained in:
parent
3734f5ebf8
commit
acadf235d1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user