Bug 1620952: part 2) Remove nsFrameSelection::Init. r=jfkthame

Will allow to declare some members const.

Differential Revision: https://phabricator.services.mozilla.com/D65954
This commit is contained in:
Mirko Brodesser
2020-03-10 12:41:05 +00:00
parent 0d69aba5fb
commit 2ce83305a3
4 changed files with 53 additions and 63 deletions

View File

@@ -384,11 +384,11 @@ TextInputSelectionController::TextInputSelectionController(
PresShell* aPresShell, nsIContent* aLimiter)
: mScrollFrame(nullptr) {
if (aPresShell) {
mFrameSelection = new nsFrameSelection();
mLimiter = aLimiter;
bool accessibleCaretEnabled =
PresShell::AccessibleCaretEnabled(aLimiter->OwnerDoc()->GetDocShell());
mFrameSelection->Init(aPresShell, mLimiter, accessibleCaretEnabled);
mFrameSelection =
new nsFrameSelection(aPresShell, mLimiter, accessibleCaretEnabled);
mPresShellWeak = do_GetWeakReference(aPresShell);
}
}