b=31451 Made sure we only set the NS_FRAME_OUT_OF_FLOW frame state bit

if the frame is actually out of the flow


git-svn-id: svn://10.0.0.236/trunk@63253 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 2000-03-17 05:10:37 +00:00
parent c874c0f6b9
commit c35e4c1e39
2 changed files with 10 additions and 6 deletions

View File

@ -8410,9 +8410,11 @@ nsCSSFrameConstructor::ConstructAlternateImageFrame(nsIPresShell* aPresShell,
aStyleContext, PR_FALSE);
// If the frame is out-of-flow, then mark it as such
nsFrameState frameState;
containerFrame->GetFrameState(&frameState);
containerFrame->SetFrameState(frameState | NS_FRAME_OUT_OF_FLOW);
if (isOutOfFlow) {
nsFrameState frameState;
containerFrame->GetFrameState(&frameState);
containerFrame->SetFrameState(frameState | NS_FRAME_OUT_OF_FLOW);
}
// Create a text frame to display the alt-text. It gets a pseudo-element
// style context

View File

@ -8410,9 +8410,11 @@ nsCSSFrameConstructor::ConstructAlternateImageFrame(nsIPresShell* aPresShell,
aStyleContext, PR_FALSE);
// If the frame is out-of-flow, then mark it as such
nsFrameState frameState;
containerFrame->GetFrameState(&frameState);
containerFrame->SetFrameState(frameState | NS_FRAME_OUT_OF_FLOW);
if (isOutOfFlow) {
nsFrameState frameState;
containerFrame->GetFrameState(&frameState);
containerFrame->SetFrameState(frameState | NS_FRAME_OUT_OF_FLOW);
}
// Create a text frame to display the alt-text. It gets a pseudo-element
// style context