It's future in the past. You need more context: Margaret said that she would eat all of the ice-cream. Both verbs are in the past, but the 2nd happens later.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.