Fixing bug 470992. Fix incorrect argument type in nsGlobalWindow::SetTimeout/Interval(). r+sr=mrbkap@gmail.com

This commit is contained in:
Johnny Stenback 2009-01-02 16:14:34 -08:00
parent 780d7a3c83
commit 84a33176cf
2 changed files with 2 additions and 9 deletions

View File

@ -144,13 +144,6 @@ interface nsIDOMWindowInternal : nsIDOMWindow2
void resizeBy(in long widthDif, in long heightDif);
void scroll(in long xScroll, in long yScroll);
//void clearTimeout(in long timerID);
//void clearInterval(in long timerID);
//[noscript] long setTimeout(/* in function,
// in unsigned long timeout */);
//[noscript] long setInterval(/* in function,
// in unsigned long timeout */);
/**
* Open a new window with this one as the parent. This method will
* NOT examine the JS stack for purposes of determining a caller.

View File

@ -4682,13 +4682,13 @@ nsGlobalWindow::ClearInterval()
}
NS_IMETHODIMP
nsGlobalWindow::SetTimeout(PRBool *_retval)
nsGlobalWindow::SetTimeout(PRInt32 *_retval)
{
return SetTimeoutOrInterval(PR_FALSE, _retval);
}
NS_IMETHODIMP
nsGlobalWindow::SetInterval(PRBool *_retval)
nsGlobalWindow::SetInterval(PRInt32 *_retval)
{
return SetTimeoutOrInterval(PR_TRUE, _retval);
}