mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 287127. Avoid using GetContentInsertionFrame when the frame hierarchy is not hooked up. r+sr=bzbarsky
This commit is contained in:
parent
87c224f2cb
commit
745e51aeeb
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user