зеркало из https://github.com/mozilla/pjs.git
Bug 514986 - Remove unused nsChildView::SetBounds. r=josh
--HG-- extra : rebase_source : 38dbfeb2ced68e0f3989604f8464038d6eddea49
This commit is contained in:
Родитель
4686d2297b
Коммит
bf8597abaf
|
@ -337,7 +337,6 @@ public:
|
|||
NS_IMETHOD Enable(PRBool aState);
|
||||
NS_IMETHOD IsEnabled(PRBool *aState);
|
||||
NS_IMETHOD SetFocus(PRBool aRaise);
|
||||
NS_IMETHOD SetBounds(const nsIntRect &aRect);
|
||||
NS_IMETHOD GetBounds(nsIntRect &aRect);
|
||||
|
||||
NS_IMETHOD Invalidate(PRBool aIsSynchronous);
|
||||
|
|
|
@ -1084,22 +1084,6 @@ NS_IMETHODIMP nsChildView::GetBounds(nsIntRect &aRect)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChildView::SetBounds(const nsIntRect &aRect)
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
||||
|
||||
nsresult rv = Inherited::SetBounds(aRect);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
NSRect r;
|
||||
GeckoRectToNSRect(aRect, r);
|
||||
[mView setFrame:r];
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChildView::ConstrainPosition(PRBool aAllowSlop,
|
||||
PRInt32 *aX, PRInt32 *aY)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче