return NS_ERROR_NOT_IMPLEMENTED;
nsIScrollableView* scrollableView = GetScrollableView(); if (!scrollableView) return NS_ERROR_FAILURE;   nsCOMPtr<nsIPresContext> context; mPresShell->GetPresContext(getter_AddRefs(context)); float pixelsToTwips = 0.0; context->GetPixelsToTwips(&pixelsToTwips);   nsIFrame* frame = GetFrame(); nsCOMPtr<nsIBox> box (do_QueryInterface(frame));  nsRect rect; nsIBox* scrolledBox; nsCOMPtr<nsIDOMXULElement> childDOMXULElement (do_QueryInterface(child)); nsIBoxObject * childBoxObject; childDOMXULElement->GetBoxObject(&childBoxObject);  PRInt32 x,y; childBoxObject->GetX(&x); childBoxObject->GetY(&y);  rect.x = NSToIntRound(x * pixelsToTwips); rect.y = NSToIntRound(y * pixelsToTwips);   box->GetChildBox(&scrolledBox);     PRBool horiz = PR_FALSE; scrolledBox->GetOrientation(horiz); nsPoint cp; scrollableView->GetScrollPosition(cp.x,cp.y); nscoord newx=cp.x, newy=cp.y;   if (horiz) { newx = rect.x; } else { newy = rect.y; }   return scrollableView->ScrollTo(newx, newy, NS_SCROLL_PROPERTY_ALWAYS_BLIT);
NS_IMETHODIMP nsScrollBoxObject::ScrollToElement(nsIDOMElement *child){    return NS_ERROR_NOT_IMPLEMENTED;}