mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Made damage rect passed to UpdateView() be a const
This commit is contained in:
parent
01cfc7a328
commit
1ac4ac9442
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user