Bug 192469. Reparent views for blocks-in-inlines regardless of why we created the view. r+sr=bzbarsky

This commit is contained in:
roc+%cs.cmu.edu 2003-02-22 21:37:55 +00:00
Родитель 6c042bceb9
Коммит 3f4a258f57
2 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);