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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user