зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
c477d38a70
Коммит
312bf3de69
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче