From ff424e9866b99d633d7fcd4ca5623458e565b2c9 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Sun, 21 Feb 1999 03:48:52 +0000 Subject: [PATCH] depricating the ScrollIntoView call. dont need it. the selection modification assures us of scrolling to view after batching. --- editor/base/nsEditor.cpp | 4 +++- editor/libeditor/base/nsEditor.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/editor/base/nsEditor.cpp b/editor/base/nsEditor.cpp index fceeffc3c8a..420aa3be98c 100644 --- a/editor/base/nsEditor.cpp +++ b/editor/base/nsEditor.cpp @@ -651,7 +651,8 @@ nsEditor::EndTransaction() nsresult nsEditor::ScrollIntoView(PRBool aScrollToBegin) { - nsresult result; + return NS_OK; //mjudge we should depricate this method +/* nsresult result; if (mPresShell) { nsCOMPtr selection; @@ -684,6 +685,7 @@ nsresult nsEditor::ScrollIntoView(PRBool aScrollToBegin) result = NS_ERROR_NOT_INITIALIZED; } return result; + */ } diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index fceeffc3c8a..420aa3be98c 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -651,7 +651,8 @@ nsEditor::EndTransaction() nsresult nsEditor::ScrollIntoView(PRBool aScrollToBegin) { - nsresult result; + return NS_OK; //mjudge we should depricate this method +/* nsresult result; if (mPresShell) { nsCOMPtr selection; @@ -684,6 +685,7 @@ nsresult nsEditor::ScrollIntoView(PRBool aScrollToBegin) result = NS_ERROR_NOT_INITIALIZED; } return result; + */ }