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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user