mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Removed build warning in nsCornerView::Paint on Linux by overriding both overloaded Paints. r=buster@netscape.com
This commit is contained in:
parent
bc95e3bdf7
commit
950dcf2670
@ -127,6 +127,8 @@ public:
|
|||||||
NS_IMETHOD SetQuality(nsContentQuality aQuality);
|
NS_IMETHOD SetQuality(nsContentQuality aQuality);
|
||||||
NS_IMETHOD Paint(nsIRenderingContext& rc, const nsRect& rect,
|
NS_IMETHOD Paint(nsIRenderingContext& rc, const nsRect& rect,
|
||||||
PRUint32 aPaintFlags, PRBool &Result);
|
PRUint32 aPaintFlags, PRBool &Result);
|
||||||
|
NS_IMETHOD Paint(nsIRenderingContext& rc, const nsIRegion& region,
|
||||||
|
PRUint32 aPaintFlags, PRBool &aResult);
|
||||||
|
|
||||||
void Show(PRBool aShow, PRBool aRethink);
|
void Show(PRBool aShow, PRBool aRethink);
|
||||||
|
|
||||||
@ -303,6 +305,15 @@ NS_IMETHODIMP CornerView::Paint(nsIRenderingContext& rc, const nsRect& rect,
|
|||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NS_IMETHODIMP
|
||||||
|
CornerView::Paint(nsIRenderingContext& rc, const nsIRegion& region,
|
||||||
|
PRUint32 aPaintFlags, PRBool &aResult)
|
||||||
|
{
|
||||||
|
// Corner View Paint is overridden to get rid of compiler warnings caused
|
||||||
|
// by overloading Paint then overriding Paint.
|
||||||
|
return nsView::Paint(rc, region, aPaintFlags, aResult);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class ClipView : public nsView, public nsIClipView
|
class ClipView : public nsView, public nsIClipView
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user