From 84b3c23319be266458931cef91715d153fb19591 Mon Sep 17 00:00:00 2001 From: michaelp Date: Tue, 16 Jun 1998 16:51:01 +0000 Subject: [PATCH] the view manager is now used when manipulating views. git-svn-id: svn://10.0.0.236/trunk@3891 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsInputFrame.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/forms/src/nsInputFrame.cpp b/mozilla/layout/html/forms/src/nsInputFrame.cpp index 7206b0534b2..2bbacc96278 100644 --- a/mozilla/layout/html/forms/src/nsInputFrame.cpp +++ b/mozilla/layout/html/forms/src/nsInputFrame.cpp @@ -121,7 +121,9 @@ nsInputFrame::MoveTo(nscoord aX, nscoord aY) nsIView* parentWithView; nsPoint origin; GetOffsetFromView(origin, parentWithView); - view->SetPosition(origin.x, origin.y); + nsIViewManager *vm = view->GetViewManager(); + vm->MoveViewTo(view, origin.x, origin.y); + NS_RELEASE(vm); NS_IF_RELEASE(parentWithView); NS_RELEASE(view); } @@ -141,7 +143,9 @@ nsInputFrame::SizeTo(nscoord aWidth, nscoord aHeight) GetView(view); if (nsnull != view) { // XXX combo boxes need revision, they cannot have their height altered - view->SetDimensions(aWidth, aHeight); + nsIViewManager *vm = view->GetViewManager(); + vm->ResizeView(view, aWidth, aHeight); + NS_RELEASE(vm); NS_RELEASE(view); } return NS_OK;