Bug 1614636: simplify arguments of nsFrameSelection::HandleClick. r=jfkthame
Simplifies understanding its dependent methods. Differential Revision: https://phabricator.services.mozilla.com/D62433
This commit is contained in:
@@ -723,7 +723,10 @@ TextInputSelectionController::CompleteMove(bool aForward, bool aExtend) {
|
||||
}
|
||||
}
|
||||
|
||||
frameSelection->HandleClick(parentDIV, offset, offset, aExtend, false, hint);
|
||||
const nsFrameSelection::FocusMode focusMode =
|
||||
aExtend ? nsFrameSelection::FocusMode::kExtendSelection
|
||||
: nsFrameSelection::FocusMode::kCollapseToNewPoint;
|
||||
frameSelection->HandleClick(parentDIV, offset, offset, focusMode, hint);
|
||||
|
||||
// if we got this far, attempt to scroll no matter what the above result is
|
||||
return CompleteScroll(aForward);
|
||||
|
||||
Reference in New Issue
Block a user