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:
parent
c874c0f6b9
commit
c35e4c1e39
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user