diff --git a/mozilla/editor/base/nsEditor.cpp b/mozilla/editor/base/nsEditor.cpp index fceeffc3c8a..420aa3be98c 100644 --- a/mozilla/editor/base/nsEditor.cpp +++ b/mozilla/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/mozilla/editor/libeditor/base/nsEditor.cpp b/mozilla/editor/libeditor/base/nsEditor.cpp index fceeffc3c8a..420aa3be98c 100644 --- a/mozilla/editor/libeditor/base/nsEditor.cpp +++ b/mozilla/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; + */ }