Bug 1623858: part 3) Remove `TextInputSelectionController::mLimiter`. r=smaug

It was never read apart from forwarding it to `nsFrameSelection`.

Depends on D67600

Differential Revision: https://phabricator.services.mozilla.com/D67601

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mirko Brodesser 2020-03-20 13:23:59 +00:00
Родитель c477d38a70
Коммит 312bf3de69
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -361,7 +361,6 @@ class TextInputSelectionController final : public nsSupportsWeakReference,
private:
RefPtr<nsFrameSelection> mFrameSelection;
nsCOMPtr<nsIContent> mLimiter;
nsIScrollableFrame* mScrollFrame;
nsWeakPtr mPresShellWeak;
};
@ -374,18 +373,16 @@ NS_INTERFACE_TABLE_HEAD(TextInputSelectionController)
NS_INTERFACE_TABLE_TO_MAP_SEGUE_CYCLE_COLLECTION(TextInputSelectionController)
NS_INTERFACE_MAP_END
NS_IMPL_CYCLE_COLLECTION_WEAK(TextInputSelectionController, mFrameSelection,
mLimiter)
NS_IMPL_CYCLE_COLLECTION_WEAK(TextInputSelectionController, mFrameSelection)
TextInputSelectionController::TextInputSelectionController(
PresShell* aPresShell, nsIContent* aLimiter)
: mScrollFrame(nullptr) {
if (aPresShell) {
mLimiter = aLimiter;
bool accessibleCaretEnabled =
PresShell::AccessibleCaretEnabled(aLimiter->OwnerDoc()->GetDocShell());
mFrameSelection =
new nsFrameSelection(aPresShell, mLimiter, accessibleCaretEnabled);
new nsFrameSelection(aPresShell, aLimiter, accessibleCaretEnabled);
mPresShellWeak = do_GetWeakReference(aPresShell);
}
}