Bug 612018 followup - Remove the extra document check, r=mats a=cleanup

This commit is contained in:
Ehsan Akhgari 2010-11-16 15:45:15 -05:00
parent 4cb8a540a7
commit 7f5db0cbfb

View File

@ -1357,8 +1357,7 @@ nsFocusManager::CheckIfFocusable(nsIContent* aContent, PRUint32 aFlags)
return nsnull;
// Make sure that our frames are up to date
if (doc)
doc->FlushPendingNotifications(Flush_Layout);
doc->FlushPendingNotifications(Flush_Layout);
nsIPresShell *shell = doc->GetShell();
if (!shell)