mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
remove unnecessary code from Carbon sheet impl. b=339866 r=mento
This commit is contained in:
parent
354997ee7b
commit
7d8e35a96b
@ -936,7 +936,6 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState)
|
||||
gEventDispatchHandler.DispatchGuiEvent(this, NS_DEACTIVATE);
|
||||
|
||||
WindowPtr top = GetWindowTop(parentWindowRef);
|
||||
piParentWidget = do_QueryInterface(parentWidget);
|
||||
nsMacWindow* siblingSheetToShow = nsnull;
|
||||
PRBool parentIsSheet = PR_FALSE;
|
||||
|
||||
@ -953,9 +952,6 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState)
|
||||
// If there are no sibling sheets, but the parent is a sheet, restore
|
||||
// it. It wasn't sent any deactivate events when it was hidden, so
|
||||
// don't call through Show, just let the OS put it back up.
|
||||
nsCOMPtr<nsIWidget> parentWidget;
|
||||
nsToolkit::GetTopWidget(sheetParent, getter_AddRefs(parentWidget));
|
||||
piParentWidget = do_QueryInterface(parentWidget);
|
||||
::ShowSheetWindow(parentWindowRef, sheetParent);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user