nsRect *foo = new nsRect(aAlloc->x, aAlloc->y, aAlloc->width, aAlloc->height);
nsRect *foo = new nsRect(0, 0, aAlloc->width, aAlloc->height);
void InitAllocationEvent(GtkAllocation *aAlloc,                            gpointer   p,                            nsSizeEvent &anEvent,                            PRUint32   aEventType){  anEvent.message = aEventType;  anEvent.widget  = (nsWidget *) p;  anEvent.eventStructType = NS_SIZE_EVENT;  if (aAlloc != nsnull) {    nsRect *foo = new nsRect(aAlloc->x, aAlloc->y, aAlloc->width, aAlloc->height);    anEvent.windowSize = foo;    anEvent.point.x = aAlloc->x;    anEvent.point.y = aAlloc->y;    anEvent.mWinWidth = aAlloc->width;    anEvent.mWinHeight = aAlloc->height;  }// this usually returns 0  anEvent.time = 0;}