Bug 288949. Don't try to use view reparenting to handle scrolled child views. Also, fix regression so that listboxes don't always have widgets. r+sr=dbaron,a=asa.

git-svn-id: svn://10.0.0.236/trunk@171875 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2005-04-07 23:54:28 +00:00
parent 5251cf02ed
commit 89977d9b7c
6 changed files with 40 additions and 16 deletions

View File

@@ -537,11 +537,7 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIFrame* aFrame,
return NS_OK;
}
// Create a view
nsIFrame* parent = aFrame->GetAncestorWithView();
NS_ASSERTION(parent, "GetParentWithView failed");
nsIView* parentView = parent->GetView();
nsIView* parentView = aFrame->GetParent()->GetParentViewForChildFrame(aFrame);
NS_ASSERTION(parentView, "no parent with view");
nsIViewManager* viewManager = parentView->GetViewManager();