Bug 73382. Clean up view manager interfaces, 2nd attempt. r=kmcclusk,rs=attinasi

git-svn-id: svn://10.0.0.236/trunk@109458 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2001-12-01 14:31:45 +00:00
parent ced02272fe
commit 35e1d479ea
64 changed files with 1154 additions and 1067 deletions

View File

@@ -2226,8 +2226,11 @@ nsresult
nsListControlFrame::CreateScrollingViewWidget(nsIView* aView, const nsStyleDisplay* aDisplay)
{
if (IsInDropDownMode() == PR_TRUE) {
nsCOMPtr<nsIViewManager> vm;
aView->GetViewManager(*getter_AddRefs(vm));
vm->SetViewFloating(aView, PR_TRUE);
nsWidgetInitData widgetData;
aView->SetFloating(PR_TRUE);
widgetData.mWindowType = eWindowType_popup;
widgetData.mBorderStyle = eBorderStyle_default;
@@ -2297,13 +2300,13 @@ nsListControlFrame::SyncViewWithFrame(nsIPresContext* aPresContext)
//nsSize size;
//GetSize(size);
nscoord width;
nscoord height;
view->GetDimensions(&width, &height);
//nscoord width;
//nscoord height;
//view->GetDimensions(&width, &height);
if (width != mRect.width || height != mRect.height) {
//if (width != mRect.width || height != mRect.height) {
//viewManager->ResizeView(view, mRect.width, mRect.height);
}
//}
nscoord x;
nscoord y;
view->GetPosition(&x, &y);