nsMouseScrollEvent scrollEvent(NS_MOUSE_SCROLL, inWidget);
nsMouseScrollEvent scrollEvent(PR_TRUE, NS_MOUSE_SCROLL, inWidget);
HandleScrollEvent ( EventMouseWheelAxis inAxis, PRBool inByLine, PRInt32 inDelta,                     Point inMouseLoc, nsIWidget* inWidget ){  NS_ASSERTION(inWidget, "HandleScrollEvent doesn't work with a null widget");  if (!inWidget)    return nsEventStatus_eIgnore;  nsMouseScrollEvent scrollEvent(NS_MOUSE_SCROLL, inWidget);    scrollEvent.scrollFlags =     (inAxis == kEventMouseWheelAxisX) ? nsMouseScrollEvent::kIsHorizontal : nsMouseScrollEvent::kIsVertical;  if ( !inByLine )    scrollEvent.scrollFlags |= nsMouseScrollEvent::kIsFullPage;    // convert window-relative (local) mouse coordinates to widget-relative  // coords for Gecko.  nsPoint mouseLocRelativeToWidget(inMouseLoc.h, inMouseLoc.v);  nsRect bounds;  inWidget->GetBounds(bounds);  nsPoint widgetOrigin(bounds.x, bounds.y);  inWidget->ConvertToDeviceCoordinates(widgetOrigin.x, widgetOrigin.y);  mouseLocRelativeToWidget.MoveBy(-widgetOrigin.x, -widgetOrigin.y);		  scrollEvent.delta = inDelta;	scrollEvent.point.x = mouseLocRelativeToWidget.x;	scrollEvent.point.y = mouseLocRelativeToWidget.y;	scrollEvent.time = PR_IntervalNow();  // dispatch scroll event  nsEventStatus rv;  scrollEvent.widget->DispatchEvent(&scrollEvent, rv);  return rv;  } // HandleScrollEvent