nsresult CompositionTransaction::SetSelectionForRanges() {
  if (NS_WARN_IF(!mEditorBase)) {
    return NS_ERROR_NOT_INITIALIZED;
  }
  return SetIMESelection(*mEditorBase, mTextNode, mOffset,
                         mStringToInsert.Length(), mRanges);
}
nsresult
CompositionTransaction::SetSelectionForRanges()
{
  return SetIMESelection(mEditorBase, mTextNode, mOffset,
                         mStringToInsert.Length(), mRanges);
}