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 too much emphasis on Willy Wonka and not enough on Charlie", as well as the casting of Gene Wilder instead of Spike Milligan. Dahl was also "infuriated" by the deviations in the plot Seltzer devised in his draft of the screenplay, including the conversion of Slugworth, a minor character in the book, into a spy (so that the film could have a villain) and the "fizzy lifting drinks" scene along with music other than the original Oompa Loompa compositions (including "Pure Imagination" and "The Candy Man"), and the ending dialogue for the movie. In 1996, Dahl's second wife, Felicity, commented