diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 6d339defae6..8e4f83cd096 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -13588,7 +13588,9 @@ nsCSSFrameConstructor::ConstructInline(nsIPresShell* aPresShell, nsHTMLContainerFrame::CreateViewForFrame(aPresContext, blockFrame, aStyleContext, nsnull, PR_FALSE); - if (aIsPositioned) { + nsIView* view; + blockFrame->GetView(aPresContext, &view); + if (view) { // Move list2's frames into the new view nsIFrame* oldParent; list2->GetParent(&oldParent); @@ -13621,7 +13623,9 @@ nsCSSFrameConstructor::ConstructInline(nsIPresShell* aPresShell, nsHTMLContainerFrame::CreateViewForFrame(aPresContext, inlineFrame, aStyleContext, nsnull, PR_FALSE); - if (aIsPositioned) { + nsIView* inlineView; + inlineFrame->GetView(aPresContext, &inlineView); + if (inlineView) { // Move list3's frames into the new view nsIFrame* oldParent; list3->GetParent(&oldParent); diff --git a/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index 6d339defae6..8e4f83cd096 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -13588,7 +13588,9 @@ nsCSSFrameConstructor::ConstructInline(nsIPresShell* aPresShell, nsHTMLContainerFrame::CreateViewForFrame(aPresContext, blockFrame, aStyleContext, nsnull, PR_FALSE); - if (aIsPositioned) { + nsIView* view; + blockFrame->GetView(aPresContext, &view); + if (view) { // Move list2's frames into the new view nsIFrame* oldParent; list2->GetParent(&oldParent); @@ -13621,7 +13623,9 @@ nsCSSFrameConstructor::ConstructInline(nsIPresShell* aPresShell, nsHTMLContainerFrame::CreateViewForFrame(aPresContext, inlineFrame, aStyleContext, nsnull, PR_FALSE); - if (aIsPositioned) { + nsIView* inlineView; + inlineFrame->GetView(aPresContext, &inlineView); + if (inlineView) { // Move list3's frames into the new view nsIFrame* oldParent; list3->GetParent(&oldParent);