Bug 378776, windows bustage

git-svn-id: svn://10.0.0.236/trunk@226819 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi 2007-05-22 22:08:36 +00:00
parent 4fcfcb5ee1
commit 1156659f71

View File

@ -928,7 +928,7 @@ nsEventStateManager::PreHandleEvent(nsPresContext* aPresContext,
// in the Ender widget case.
nsCOMPtr<nsIDocument> doc = gLastFocusedContent->GetDocument();
if (doc) {
nsIPresShell *shell = doc->GetShellAt(0);
nsIPresShell *shell = doc->GetPrimaryShell();
if (shell) {
nsCOMPtr<nsPresContext> oldPresContext =
shell->GetPresContext();