scroll after moving caret to top or bottom of editfield; bug #74600; r=mjudge, sr=kin
git-svn-id: svn://10.0.0.236/trunk@93156 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2951,8 +2951,9 @@ PresShell::IntraLineMove(PRBool aForward, PRBool aExtend)
|
||||
NS_IMETHODIMP
|
||||
PresShell::PageMove(PRBool aForward, PRBool aExtend)
|
||||
{
|
||||
#if 1
|
||||
return ScrollPage(aForward);
|
||||
#if 0
|
||||
#else
|
||||
|
||||
nsCOMPtr<nsIViewManager> viewManager;
|
||||
nsresult result = GetViewManager(getter_AddRefs(viewManager));
|
||||
@@ -3096,6 +3097,8 @@ PresShell::CompleteMove(PRBool aForward, PRBool aExtend)
|
||||
bodyContent->ChildCount(offset);
|
||||
}
|
||||
result = mSelection->HandleClick(bodyContent,offset,offset,aExtend, PR_FALSE,aExtend);
|
||||
// if we got this far, attempt to scroll no matter what the above result is
|
||||
CompleteScroll(aForward);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2951,8 +2951,9 @@ PresShell::IntraLineMove(PRBool aForward, PRBool aExtend)
|
||||
NS_IMETHODIMP
|
||||
PresShell::PageMove(PRBool aForward, PRBool aExtend)
|
||||
{
|
||||
#if 1
|
||||
return ScrollPage(aForward);
|
||||
#if 0
|
||||
#else
|
||||
|
||||
nsCOMPtr<nsIViewManager> viewManager;
|
||||
nsresult result = GetViewManager(getter_AddRefs(viewManager));
|
||||
@@ -3096,6 +3097,8 @@ PresShell::CompleteMove(PRBool aForward, PRBool aExtend)
|
||||
bodyContent->ChildCount(offset);
|
||||
}
|
||||
result = mSelection->HandleClick(bodyContent,offset,offset,aExtend, PR_FALSE,aExtend);
|
||||
// if we got this far, attempt to scroll no matter what the above result is
|
||||
CompleteScroll(aForward);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user