Bug 419147 - "MOZ_XUL define required for nsContentUtils::HidePopupsInDocument" [p=romaxa@gmail.com (romaxa) r+sr=bzbarsky a1.9=beltzner]

This commit is contained in:
reed@reedloden.com 2008-02-23 23:40:39 -08:00
parent eda8f31292
commit 6beee60bf2

View File

@ -3965,6 +3965,7 @@ nsContentUtils::HidePopupsInDocument(nsIDocument* aDocument)
{
NS_PRECONDITION(aDocument, "Null document");
#ifdef MOZ_XUL
nsXULPopupManager* pm = nsXULPopupManager::GetInstance();
if (pm) {
nsCOMPtr<nsISupports> container = aDocument->GetContainer();
@ -3972,6 +3973,7 @@ nsContentUtils::HidePopupsInDocument(nsIDocument* aDocument)
if (docShellToHide)
pm->HidePopupsInDocShell(docShellToHide);
}
#endif
}
/* static */