зеркало из https://github.com/mozilla/pjs.git
Bug 510155 - Remove nsChildView::SetWindowShadow. r=josh
--HG-- extra : rebase_source : 5d291e0e5b4920c9939557cb2ffc3e45a6d95632
This commit is contained in:
Родитель
82fbaced2e
Коммит
e730a3faa3
|
@ -641,6 +641,8 @@ class nsIWidget : public nsISupports {
|
|||
|
||||
/**
|
||||
* Set the shadow style of the window.
|
||||
*
|
||||
* Ignored on child widgets and on non-Mac platforms.
|
||||
*/
|
||||
NS_IMETHOD SetWindowShadowStyle(PRInt32 aStyle) = 0;
|
||||
|
||||
|
|
|
@ -388,7 +388,6 @@ public:
|
|||
|
||||
virtual nsTransparencyMode GetTransparencyMode();
|
||||
virtual void SetTransparencyMode(nsTransparencyMode aMode);
|
||||
NS_IMETHOD SetWindowShadowStyle(PRInt32 aStyle);
|
||||
|
||||
// Mac specific methods
|
||||
|
||||
|
|
|
@ -837,22 +837,6 @@ void nsChildView::SetTransparencyMode(nsTransparencyMode aMode)
|
|||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
}
|
||||
|
||||
// This is called by nsContainerFrame on the root widget for all window types
|
||||
// except popup windows (when nsCocoaWindow::SetWindowShadowStyle is used instead).
|
||||
NS_IMETHODIMP nsChildView::SetWindowShadowStyle(PRInt32 aStyle)
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
||||
|
||||
nsCocoaWindow *widget = GetXULWindowWidget();
|
||||
if (widget) {
|
||||
widget->SetWindowShadowStyle(aStyle);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChildView::IsVisible(PRBool& outState)
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
|
||||
|
|
Загрузка…
Ссылка в новой задаче