mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 514987 - Remove unused nsIWidget::Validate. r=roc
--HG-- extra : rebase_source : c06acb3c5f6608bc2d8667044fbab904668a58b0
This commit is contained in:
parent
da748db6e5
commit
878180714d
@ -665,12 +665,6 @@ class nsIWidget : public nsISupports {
|
||||
*/
|
||||
NS_IMETHOD MakeFullScreen(PRBool aFullScreen) = 0;
|
||||
|
||||
/**
|
||||
* Validate the widget.
|
||||
*
|
||||
*/
|
||||
NS_IMETHOD Validate() = 0;
|
||||
|
||||
/**
|
||||
* Invalidate the widget and repaint it.
|
||||
*
|
||||
|
@ -341,7 +341,6 @@ public:
|
||||
|
||||
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
|
||||
NS_IMETHOD Invalidate(const nsIntRect &aRect, PRBool aIsSynchronous);
|
||||
NS_IMETHOD Validate();
|
||||
|
||||
virtual void* GetNativeData(PRUint32 aDataType);
|
||||
virtual nsresult ConfigureChildren(const nsTArray<Configuration>& aConfigurations);
|
||||
|
@ -1659,17 +1659,6 @@ NS_IMETHODIMP nsChildView::Invalidate(const nsIntRect &aRect, PRBool aIsSynchron
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
||||
}
|
||||
|
||||
// Validate the widget
|
||||
NS_IMETHODIMP nsChildView::Validate()
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
||||
|
||||
[mView setNeedsDisplay:NO];
|
||||
return NS_OK;
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
||||
}
|
||||
|
||||
inline PRUint16 COLOR8TOCOLOR16(PRUint8 color8)
|
||||
{
|
||||
// return (color8 == 0xFF ? 0xFFFF : (color8 << 8));
|
||||
|
@ -1680,23 +1680,6 @@ nsWindow::SetCursor(imgIContainer* aCursor,
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWindow::Validate()
|
||||
{
|
||||
// Get the update for this window and, well, just drop it on the
|
||||
// floor.
|
||||
if (!mGdkWindow)
|
||||
return NS_OK;
|
||||
|
||||
GdkRegion *region = gdk_window_get_update_area(mGdkWindow);
|
||||
|
||||
if (region)
|
||||
gdk_region_destroy(region);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWindow::Invalidate(PRBool aIsSynchronous)
|
||||
{
|
||||
|
@ -181,7 +181,6 @@ public:
|
||||
NS_IMETHOD SetCursor(nsCursor aCursor);
|
||||
NS_IMETHOD SetCursor(imgIContainer* aCursor,
|
||||
PRUint32 aHotspotX, PRUint32 aHotspotY);
|
||||
NS_IMETHOD Validate();
|
||||
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
|
||||
NS_IMETHOD Invalidate(const nsIntRect &aRect,
|
||||
PRBool aIsSynchronous);
|
||||
|
@ -634,20 +634,6 @@ nsWindow::SetCursor(imgIContainer* aCursor,
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWindow::Validate()
|
||||
{
|
||||
// Get the update for this window and, well, just drop it on the
|
||||
// floor.
|
||||
if (!mWidget)
|
||||
return NS_OK;
|
||||
|
||||
qDebug("FIXME:>>>>>>Func:%s::%d\n", __PRETTY_FUNCTION__, __LINE__);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWindow::Invalidate(PRBool aIsSynchronous)
|
||||
{
|
||||
|
@ -165,7 +165,6 @@ public:
|
||||
NS_IMETHOD GetHasTransparentBackground(PRBool& aTransparent);
|
||||
NS_IMETHOD HideWindowChrome(PRBool aShouldHide);
|
||||
NS_IMETHOD MakeFullScreen(PRBool aFullScreen);
|
||||
NS_IMETHOD Validate();
|
||||
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
|
||||
NS_IMETHOD Invalidate(const nsIntRect &aRect,
|
||||
PRBool aIsSynchronous);
|
||||
|
@ -1999,20 +1999,12 @@ NS_IMETHODIMP nsWindow::HideWindowChrome(PRBool aShouldHide)
|
||||
|
||||
/**************************************************************
|
||||
*
|
||||
* SECTION: nsIWidget::Validate, nsIWidget::Invalidate
|
||||
* SECTION: nsIWidget::Invalidate
|
||||
*
|
||||
* Validate or invalidate an area of the client for painting.
|
||||
* Invalidate an area of the client for painting.
|
||||
*
|
||||
**************************************************************/
|
||||
|
||||
// Validate a visible area of a widget.
|
||||
NS_METHOD nsWindow::Validate()
|
||||
{
|
||||
if (mWnd)
|
||||
VERIFY(::ValidateRect(mWnd, NULL));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef WINCE_WINDOWS_MOBILE
|
||||
static inline void AddRECTToRegion(const RECT& aRect, nsIRegion* aRegion)
|
||||
{
|
||||
|
@ -139,7 +139,6 @@ public:
|
||||
virtual nsresult ConfigureChildren(const nsTArray<Configuration>& aConfigurations);
|
||||
NS_IMETHOD MakeFullScreen(PRBool aFullScreen);
|
||||
NS_IMETHOD HideWindowChrome(PRBool aShouldHide);
|
||||
NS_IMETHOD Validate();
|
||||
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
|
||||
NS_IMETHOD Invalidate(const nsIntRect & aRect, PRBool aIsSynchronous);
|
||||
NS_IMETHOD Update();
|
||||
|
@ -214,11 +214,6 @@ NS_IMETHODIMP nsBaseWidget::CaptureMouse(PRBool aCapture)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsBaseWidget::Validate()
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Accessor functions to get/set the client data
|
||||
|
@ -74,7 +74,6 @@ public:
|
||||
|
||||
// nsIWidget interface
|
||||
NS_IMETHOD CaptureMouse(PRBool aCapture);
|
||||
NS_IMETHOD Validate();
|
||||
NS_IMETHOD GetClientData(void*& aClientData);
|
||||
NS_IMETHOD SetClientData(void* aClientData);
|
||||
NS_IMETHOD Destroy();
|
||||
|
Loading…
Reference in New Issue
Block a user