Bug 453826 - MOZ_XUL define required for nsCaret::IsMenuPopupHidingCaret. r+sr=roc

This commit is contained in:
Oleg Romashin 2008-09-08 15:23:38 +03:00
Родитель 6af682ac44
Коммит 862b8e5d2b
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1010,6 +1010,7 @@ PRBool nsCaret::MustDrawCaret(PRBool aIgnoreDrawnState)
PRBool nsCaret::IsMenuPopupHidingCaret()
{
#ifdef MOZ_XUL
// Check if there are open popups.
nsXULPopupManager *popMgr = nsXULPopupManager::GetInstance();
nsTArray<nsIFrame*> popups = popMgr->GetOpenPopups();
@ -1049,6 +1050,7 @@ PRBool nsCaret::IsMenuPopupHidingCaret()
return PR_TRUE;
}
}
#endif
// There are no open menu popups, no need to hide the caret.
return PR_FALSE;