Bug 287127. Avoid using GetContentInsertionFrame when the frame hierarchy is not hooked up. r+sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@171037 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu 2005-03-23 03:39:32 +00:00
parent 7f1a3c9c93
commit d32f42b290

View File

@ -7895,8 +7895,7 @@ nsCSSFrameConstructor::GetAbsoluteContainingBlock(nsIFrame* aFrame)
if (disp->IsPositioned() && disp->mDisplay != NS_STYLE_DISPLAY_TABLE) {
// Find the outermost wrapped block under this frame
for (nsIFrame* wrappedFrame = frame->GetContentInsertionFrame();
wrappedFrame != frame->GetParent();
for (nsIFrame* wrappedFrame = aFrame; wrappedFrame != frame->GetParent();
wrappedFrame = wrappedFrame->GetParent()) {
nsIAtom* frameType = wrappedFrame->GetType();
if (nsLayoutAtoms::areaFrame == frameType ||