Bug 1635709: part 18) Correct assignment to `aDidAddRange` in `Selection::MaybeAddTableCellRange`. r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D75100
This commit is contained in:
Mirko Brodesser 2020-05-14 10:08:55 +00:00
Родитель 91fe215251
Коммит cb9ee320b9
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -487,9 +487,11 @@ nsresult Selection::MaybeAddTableCellRange(nsRange& aRange, bool* aDidAddRange,
mFrameSelection->mTableSelection.mMode = tableMode;
}
*aDidAddRange = true;
return AddRangesForSelectableNodes(&aRange, aOutIndex,
DispatchSelectstartEvent::Maybe);
result = AddRangesForSelectableNodes(&aRange, aOutIndex,
DispatchSelectstartEvent::Maybe);
*aDidAddRange = *aOutIndex != -1;
return result;
}
Selection::Selection(SelectionType aSelectionType,