Bug 745568 - Fix nsXULDocument::CloneNode; r=smaug

This commit is contained in:
Ms2ger 2012-05-05 11:00:05 +02:00
parent 11e7a4294a
commit 939283ce71
2 changed files with 5 additions and 2 deletions

View File

@ -1951,7 +1951,7 @@ nsXULDocument::RemoveElementFromRefMap(Element* aElement)
//
NS_IMETHODIMP
nsXULDocument::CloneNode(bool aDeep, nsIDOMNode** aReturn)
nsXULDocument::CloneNode(bool aDeep, PRUint8 aOptionalArgc, nsIDOMNode** aReturn)
{
// We don't allow cloning of a document
*aReturn = nsnull;

View File

@ -58,6 +58,8 @@
#include "nsIStreamListener.h"
#include "nsICSSLoaderObserver.h"
#include "mozilla/Attributes.h"
class nsIRDFResource;
class nsIRDFService;
class nsPIWindowRoot;
@ -165,7 +167,8 @@ public:
bool OnDocumentParserError();
// nsIDOMNode interface overrides
NS_IMETHOD CloneNode(bool deep, nsIDOMNode **_retval);
NS_IMETHOD CloneNode(bool deep, PRUint8 aOptionalArgc, nsIDOMNode **_retval)
MOZ_OVERRIDE;
// nsIDOMDocument
NS_IMETHOD GetContentType(nsAString& aContentType);