diff --git a/editor/base/nsHTMLEditor.cpp b/editor/base/nsHTMLEditor.cpp
index 3bfd4a1f357..fbd518d1960 100644
--- a/editor/base/nsHTMLEditor.cpp
+++ b/editor/base/nsHTMLEditor.cpp
@@ -2165,7 +2165,7 @@ nsHTMLEditor::InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection)
nsAutoJSEditorLogLock logLock(mJSEditorLog);
if (mJSEditorLog)
- mJSEditorLog->InsertElement(aElement, aDeleteSelection, aReturn);
+ mJSEditorLog->InsertElement(aElement, aDeleteSelection);
#endif // ENABLE_JS_EDITOR_LOG
nsresult res=NS_ERROR_NOT_INITIALIZED;
diff --git a/editor/base/nsInsertHTMLTxn.cpp b/editor/base/nsInsertHTMLTxn.cpp
index 10be8fa914f..d2a42b60cdb 100644
--- a/editor/base/nsInsertHTMLTxn.cpp
+++ b/editor/base/nsInsertHTMLTxn.cpp
@@ -20,6 +20,7 @@
// KEEPING AROUND FOR A FEW DAYS JUST TO MAKE SURE;
// BUT IT'S NO LONGER PART OF THE BUILD.
+#include "nsIDOMDocumentFragment.h"
#include "nsInsertHTMLTxn.h"
#include "nsIDOMSelection.h"
#include "nsIContent.h"
diff --git a/editor/base/nsJSEditorLog.cpp b/editor/base/nsJSEditorLog.cpp
index f4a5180c2e1..56773fc14c5 100644
--- a/editor/base/nsJSEditorLog.cpp
+++ b/editor/base/nsJSEditorLog.cpp
@@ -658,7 +658,7 @@ nsJSEditorLog::CreateElementWithDefaults(const nsString& aTagName, nsIDOMElement
}
NS_IMETHODIMP
-nsJSEditorLog::InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection, nsIDOMElement** aReturn)
+nsJSEditorLog::InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection)
{
// XXX: Need to add code here to dump out the element
// XXX: and it's children.
diff --git a/editor/base/nsJSEditorLog.h b/editor/base/nsJSEditorLog.h
index dbbc2cbf277..c5e22713b25 100644
--- a/editor/base/nsJSEditorLog.h
+++ b/editor/base/nsJSEditorLog.h
@@ -120,7 +120,7 @@ public:
NS_IMETHOD Align(const nsString& aAlign);
NS_IMETHOD GetSelectedElement(const nsString& aTagName, nsIDOMElement** aReturn);
NS_IMETHOD CreateElementWithDefaults(const nsString& aTagName, nsIDOMElement** aReturn);
- NS_IMETHOD InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection, nsIDOMElement** aReturn);
+ NS_IMETHOD InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection);
NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement* aAnchorElement);
NS_IMETHOD SelectElement(nsIDOMElement* aElement);
NS_IMETHOD SetCaretAfterElement(nsIDOMElement* aElement);
diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp
index 3bfd4a1f357..fbd518d1960 100644
--- a/editor/libeditor/html/nsHTMLEditor.cpp
+++ b/editor/libeditor/html/nsHTMLEditor.cpp
@@ -2165,7 +2165,7 @@ nsHTMLEditor::InsertElement(nsIDOMElement* aElement, PRBool aDeleteSelection)
nsAutoJSEditorLogLock logLock(mJSEditorLog);
if (mJSEditorLog)
- mJSEditorLog->InsertElement(aElement, aDeleteSelection, aReturn);
+ mJSEditorLog->InsertElement(aElement, aDeleteSelection);
#endif // ENABLE_JS_EDITOR_LOG
nsresult res=NS_ERROR_NOT_INITIALIZED;