It is synonymous with the following:

> He [smiles/becomes happier] when he looks at the treat