зеркало из https://github.com/mozilla/pjs.git
Bug 514989 - Remove unused OnPaint methods. r=josh
--HG-- extra : rebase_source : becb8d97710a1f13f491689e4a9eba6924f19dca
This commit is contained in:
Родитель
5e5940c845
Коммит
5f15aeca5a
|
@ -422,8 +422,6 @@ protected:
|
|||
PRBool ReportMoveEvent();
|
||||
PRBool ReportSizeEvent();
|
||||
|
||||
virtual PRBool OnPaint(nsPaintEvent & aEvent);
|
||||
|
||||
// override to create different kinds of child views. Autoreleases, so
|
||||
// caller must retain.
|
||||
virtual NSView* CreateCocoaView(NSRect inFrame);
|
||||
|
|
|
@ -1651,13 +1651,6 @@ inline PRUint16 COLOR8TOCOLOR16(PRUint8 color8)
|
|||
return (color8 << 8) | color8; /* (color8 * 257) == (color8 * 0x0101) */
|
||||
}
|
||||
|
||||
// Dummy impl, meant to be overridden
|
||||
PRBool
|
||||
nsChildView::OnPaint(nsPaintEvent &event)
|
||||
{
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
// The OS manages repaints well enough on its own, so we don't have to
|
||||
// flush them out here. In other words, the OS will automatically call
|
||||
// displayIfNeeded at the appropriate times, so we don't need to do it
|
||||
|
|
|
@ -219,7 +219,6 @@ public:
|
|||
NS_IMETHOD Resize(PRInt32 aWidth,PRInt32 aHeight, PRBool aRepaint);
|
||||
NS_IMETHOD Resize(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint);
|
||||
NS_IMETHOD GetScreenBounds(nsIntRect &aRect);
|
||||
virtual PRBool OnPaint(nsPaintEvent &event);
|
||||
void ReportSizeEvent(NSRect *overrideRect = nsnull);
|
||||
|
||||
NS_IMETHOD SetTitle(const nsAString& aTitle);
|
||||
|
|
|
@ -1134,11 +1134,6 @@ NS_IMETHODIMP nsCocoaWindow::GetScreenBounds(nsIntRect &aRect)
|
|||
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
||||
}
|
||||
|
||||
PRBool nsCocoaWindow::OnPaint(nsPaintEvent &event)
|
||||
{
|
||||
return PR_TRUE; // don't dispatch the update event
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsCocoaWindow::SetTitle(const nsAString& aTitle)
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
||||
|
|
Загрузка…
Ссылка в новой задаче