diff --git a/widget/src/mac/nsMacWindow.cpp b/widget/src/mac/nsMacWindow.cpp index 383dff4c2a39..2e867c508264 100644 --- a/widget/src/mac/nsMacWindow.cpp +++ b/widget/src/mac/nsMacWindow.cpp @@ -804,7 +804,7 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool aState) if (aState && !mBounds.IsEmpty()) { if (mIsSheet) { if (parentWindowRef) { - WindowPtr top = GetWindowTop(parentWindowRef); + WindowPtr top = parentWindowRef; if (piParentWidget) { piParentWidget->SetIgnoreDeactivate(PR_TRUE);