Charlie and the Chocolate Factory (franchise) Ross, Rob Minkoff, Martin Scorsese and Tom Shadyac had been involved, while Warner Bros. either considered or discussed the role of Willy Wonka with Nicolas Cage, Jim Carrey, Michael Keaton, Brad Pitt, Will Smith and Adam Sandler. Burton immediately brought regular collaborators Johnny Depp and Danny Elfman aboard. "Charlie and the Chocolate Factory" represents the first time since "The Nightmare Before Christmas" that Elfman contributed to the film score using written songs and his vocals. Filming took place from June to December 2004 at Pinewood Studios in the United Kingdom, where Burton avoided using digital effects as much as possible.
Willy Wonka & the Chocolate Factory to buy the rights to the book and finance the picture for the purpose of promoting a new Quaker Oats "Wonka Bar". David L. Wolper and Roald Dahl agreed that the film would be a children's musical, and that Dahl himself would write the screenplay. However, Wolper changed the title to "Willy Wonka and the Chocolate Factory". Screenwriter David Seltzer conceived a gimmick exclusively for the film that had Wonka quoting numerous literary sources, such as Arthur O'Shaughnessy's "Ode", Oscar Wilde's "The Importance of Being Earnest", Samuel Taylor Coleridge's "The Rime of the Ancient Mariner" and William Shakespeare's "The Merchant