mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 869151. Implement GetParent for nsCocoaWindow so that nsBaseWidget::Destroy can find the parent and remove from the child list when destroying. r=smichaud
This commit is contained in:
parent
80d09dfe38
commit
329d8e7644
@ -216,6 +216,8 @@ public:
|
||||
|
||||
NS_IMETHOD Destroy();
|
||||
|
||||
virtual nsIWidget* GetParent(void);
|
||||
|
||||
NS_IMETHOD Show(bool aState);
|
||||
virtual nsIWidget* GetSheetWindowParent(void);
|
||||
NS_IMETHOD Enable(bool aState);
|
||||
|
@ -534,6 +534,11 @@ NS_IMETHODIMP nsCocoaWindow::Destroy()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsIWidget* nsCocoaWindow::GetParent()
|
||||
{
|
||||
return mParent;
|
||||
}
|
||||
|
||||
nsIWidget* nsCocoaWindow::GetSheetWindowParent(void)
|
||||
{
|
||||
if (mWindowType != eWindowType_sheet)
|
||||
|
Loading…
Reference in New Issue
Block a user