Matt Cain pitched seven shutout innings and Mike Fontenot broke a scoreless tie with a two-out RBI single in the seventh inning off San Francisco nemesis Chad Billingsley, leading the Giants to a 2-1 victory over the Los Angeles Dodgers on Wednesday night.