375196, r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@222385 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2007-03-26 05:38:22 +00:00
parent 68a53a8714
commit 6de13cdbca
12 changed files with 29 additions and 32 deletions

View File

@@ -305,7 +305,7 @@ nsTextInputListener::NotifySelectionChanged(nsIDOMDocument* aDoc, nsISelection*
nsCOMPtr<nsIDocument> doc = content->GetDocument();
if (doc)
{
nsIPresShell *presShell = doc->GetShellAt(0);
nsCOMPtr<nsIPresShell> presShell = doc->GetShellAt(0);
if (presShell)
{
nsEventStatus status = nsEventStatus_eIgnore;
@@ -2467,8 +2467,8 @@ nsTextControlFrame::FireOnInput()
// Have the content handle the event, propagating it according to normal
// DOM rules.
GetPresContext()->PresShell()->HandleEventWithTarget(&event, nsnull, mContent,
&status);
nsCOMPtr<nsIPresShell> shell = GetPresContext()->PresShell();
shell->HandleEventWithTarget(&event, nsnull, mContent, &status);
}
nsresult
@@ -2488,9 +2488,8 @@ nsTextControlFrame::CheckFireOnChange()
// Dispatch the change event
nsEventStatus status = nsEventStatus_eIgnore;
nsInputEvent event(PR_TRUE, NS_FORM_CHANGE, nsnull);
GetPresContext()->PresShell()->HandleEventWithTarget(&event, nsnull,
mContent, &status);
nsCOMPtr<nsIPresShell> shell = GetPresContext()->PresShell();
shell->HandleEventWithTarget(&event, nsnull, mContent, &status);
}
return NS_OK;
}