From 7fca9557d2b57a80fa924bf6ab1f5547f230eeb2 Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Mon, 20 Jan 2020 12:39:04 +0000 Subject: [PATCH] Bug 1609662: part 6) Update documentation of `Selection::GetIndicesForInterval`. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D60130 --HG-- extra : moz-landing-system : lando --- dom/base/Selection.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/base/Selection.h b/dom/base/Selection.h index 6eb48d2edcb8..32be317f57bc 100644 --- a/dom/base/Selection.h +++ b/dom/base/Selection.h @@ -753,6 +753,9 @@ class Selection final : public nsSupportsWeakReference, * Works on the same principle as GetRangesForIntervalArray, however * instead this returns the indices into mRanges between which the * overlapping ranges lie. + * + * @param aStartIndex will be less or equal than aEndIndex. + * @param aEndIndex can be in [-1, mRanges.Length()]. */ nsresult GetIndicesForInterval(const nsINode* aBeginNode, int32_t aBeginOffset, const nsINode* aEndNode,