Made damage rect passed to UpdateView() be a const

This commit is contained in:
troy 1998-06-02 05:26:42 +00:00
parent 01cfc7a328
commit 1ac4ac9442
3 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ public:
* @param rect rect to mark as damaged
* @param aUpdateFlags see bottom of nsIViewManager.h for description
*/
virtual void UpdateView(nsIView *aView, nsRect &aRect, PRUint32 aUpdateFlags) = 0;
virtual void UpdateView(nsIView *aView, const nsRect &aRect, PRUint32 aUpdateFlags) = 0;
/**
* Called to dispatch an event to the appropriate view. Often called

View File

@ -361,7 +361,7 @@ void nsViewManager :: UpdateView(nsIView *aView, nsIRegion *aRegion, PRUint32 aU
}
}
void nsViewManager :: UpdateView(nsIView *aView, nsRect &aRect, PRUint32 aUpdateFlags)
void nsViewManager :: UpdateView(nsIView *aView, const nsRect &aRect, PRUint32 aUpdateFlags)
{
nsRect trect = aRect;
nsIView *par = aView;

View File

@ -86,7 +86,7 @@ public:
// should be in the layer's coordinate space.
virtual void UpdateView(nsIView *aView, nsIRegion *aRegion,
PRUint32 aUpdateFlags);
virtual void UpdateView(nsIView *aView, nsRect &aRect, PRUint32 aUpdateFlags);
virtual void UpdateView(nsIView *aView, const nsRect &aRect, PRUint32 aUpdateFlags);
// Called to dispatch an event to the appropriate layer. Often called
// as a result of receiving a mouse or keyboard event from the native