LOS ANGELES -- Cody Ross hit a tiebreaking three-run homer in the ninth inning, and the San Francisco Giants rebounded from the Dodgers' three-run rally in the eighth for an 8-5 victory over Los Angeles on Wednesday night.