diff --git a/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp b/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp index 8751c4dfc92..f7e2fd2062e 100644 --- a/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp +++ b/mozilla/layout/xul/base/src/nsScrollBoxFrame.cpp @@ -392,14 +392,10 @@ nsScrollBoxFrame::DoLayout(nsBoxLayoutState& aState) nsIFrame* frame; kid->GetFrame(&frame); frame->GetView(presContext, &view); - nsCOMPtr vm; - view->GetViewManager(*getter_AddRefs(vm)); + nsRect r(0, 0, childRect.width, childRect.height); - nsRect bnds; - view->GetBounds(bnds); - if (bnds != r) { - vm->ResizeView(view, r); - } + nsContainerFrame::SyncFrameViewAfterReflow(presContext, frame, view, &r, + NS_FRAME_NO_MOVE_VIEW); } nsIScrollableView* scrollingView;