mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix for bug 394264 (Ctrl+Home doesn't work, in the body of a message being composed). r=Neil, sr=jst.
This commit is contained in:
parent
bd7abdc552
commit
1c227b78cc
@ -2828,8 +2828,12 @@ nsresult
|
||||
PresShell::CompleteMoveInner(PRBool aForward, PRBool aExtend, PRBool aScrollIntoView)
|
||||
{
|
||||
nsIContent* root = mSelection->GetAncestorLimiter();
|
||||
if (root) {
|
||||
// make the caret be either at the very beginning (0) or the very end
|
||||
nsIDocument* doc;
|
||||
if (root && (doc = root->GetOwnerDoc()) && doc->GetRootContent() != root) {
|
||||
// Make the caret be either at the very beginning (0) or the very end of
|
||||
// root. Only do this when not moving to the beginning or end of the
|
||||
// document (root is null or root is the documentElement), that's handled
|
||||
// below by moving to beginning or end of the scrollable view.
|
||||
nsIContent* node = root;
|
||||
PRInt32 offset = 0;
|
||||
nsFrameSelection::HINT hint = nsFrameSelection::HINTLEFT;
|
||||
|
Loading…
Reference in New Issue
Block a user