if(x) *x = mBounds.x; if(y) *y = mBounds.y; if(cx) *cx = mBounds.width; if(cy) *cy = mBounds.height;  return NS_OK;
nsRect result;  if(mWindow) mWindow->GetClientBounds(result); else result = mBounds;  if(aX) *aX = result.x; if(aY) *aY = result.y; if(aCX) *aCX = result.width; if(aCY) *aCY = result.height;  return NS_OK;
NS_IMETHODIMP nsWebShell::GetPositionAndSize(PRInt32* x, PRInt32* y,    PRInt32* cx, PRInt32* cy){   if(x)      *x = mBounds.x;   if(y)      *y = mBounds.y;   if(cx)      *cx = mBounds.width;   if(cy)      *cy = mBounds.height;         return NS_OK; }