зеркало из https://github.com/mozilla/gecko-dev.git
Checking in rods@netscape.com's patch for bug 60049. The implementation of document.clear() in mozilla was incorrectly clearing the whole document, the same method in NS 4.x and IE seem to do nothing so with this patch document.clear() is a nop. r=jst@netscape.com, sr=vidur@netscape.com
This commit is contained in:
Родитель
4f8f2165ba
Коммит
5407409933
|
@ -2180,9 +2180,8 @@ nsHTMLDocument::Open(JSContext *cx, jsval *argv, PRUint32 argc,
|
|||
NS_IMETHODIMP
|
||||
nsHTMLDocument::Clear(JSContext* cx, jsval* argv, PRUint32 argc)
|
||||
{
|
||||
nsCOMPtr<nsIDOMDocument> doc;
|
||||
|
||||
return Open(cx, argv, argc, getter_AddRefs(doc));
|
||||
// This method has been deprecated
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -2180,9 +2180,8 @@ nsHTMLDocument::Open(JSContext *cx, jsval *argv, PRUint32 argc,
|
|||
NS_IMETHODIMP
|
||||
nsHTMLDocument::Clear(JSContext* cx, jsval* argv, PRUint32 argc)
|
||||
{
|
||||
nsCOMPtr<nsIDOMDocument> doc;
|
||||
|
||||
return Open(cx, argv, argc, getter_AddRefs(doc));
|
||||
// This method has been deprecated
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче