SAN FRANCISCO — It was to be a theatrical scene in a trial filled with them: San Francisco City Attorney Dennis Herrera, a key same-sex marriage backer looking to run for mayor, gently leading San Diego Mayor Jerry Sanders through emotional testimony about his conversion from gaymarriage opponent to supporter after his daughter came out to him as a lesbian.

Before Herrera could deliver his opening line, though, Chief Judge Vaughn Walker walked onto his stage.