From fdced221044d14ace5b44662684932c6863dbe99 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Thu, 4 May 2000 14:32:07 +0000 Subject: [PATCH] Replace GetBodyElement with GetRootElement to fix bustage --- editor/base/nsHTMLEditor.cpp | 2 +- editor/libeditor/html/nsHTMLEditor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/base/nsHTMLEditor.cpp b/editor/base/nsHTMLEditor.cpp index fcd8394b5f5b..bfd1a1db638f 100644 --- a/editor/base/nsHTMLEditor.cpp +++ b/editor/base/nsHTMLEditor.cpp @@ -2146,7 +2146,7 @@ NS_IMETHODIMP nsHTMLEditor::SetCaretToDocumentStart() { nsCOMPtr bodyElement; - nsresult res = nsEditor::GetBodyElement(getter_AddRefs(bodyElement)); + nsresult res = nsEditor::GetRootElement(getter_AddRefs(bodyElement)); if (NS_FAILED(res)) return res; if (!bodyElement) return NS_ERROR_NULL_POINTER; nsCOMPtr bodyNode = do_QueryInterface(bodyElement); diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index fcd8394b5f5b..bfd1a1db638f 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -2146,7 +2146,7 @@ NS_IMETHODIMP nsHTMLEditor::SetCaretToDocumentStart() { nsCOMPtr bodyElement; - nsresult res = nsEditor::GetBodyElement(getter_AddRefs(bodyElement)); + nsresult res = nsEditor::GetRootElement(getter_AddRefs(bodyElement)); if (NS_FAILED(res)) return res; if (!bodyElement) return NS_ERROR_NULL_POINTER; nsCOMPtr bodyNode = do_QueryInterface(bodyElement);