Petrologic Controls on the Temperature and Volatile Evolution of Magmas