Replace GetBodyElement with GetRootElement to fix bustage

This commit is contained in:
cmanske%netscape.com 2000-05-04 14:32:07 +00:00
parent 3403bfda38
commit fdced22104
2 changed files with 2 additions and 2 deletions

View File

@ -2146,7 +2146,7 @@ NS_IMETHODIMP
nsHTMLEditor::SetCaretToDocumentStart()
{
nsCOMPtr<nsIDOMElement> 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<nsIDOMNode> bodyNode = do_QueryInterface(bodyElement);

View File

@ -2146,7 +2146,7 @@ NS_IMETHODIMP
nsHTMLEditor::SetCaretToDocumentStart()
{
nsCOMPtr<nsIDOMElement> 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<nsIDOMNode> bodyNode = do_QueryInterface(bodyElement);