EXISTING MACHINERY. “Molecular genetics indicates that the developmental mechanisms required for leaf production in vascular plants were recruited long before the advent of large megaphylls. According to theory, this morphogenetic potential was only realized as the concentration of atmospheric CO2 declined during the late Palaeozoic.”
http://aob.oxfordjournals.org/content/96/3/345.full.pdf