For animated images, WebKit needs the current frame only to be cached. Since the frames of an animated image are drawn in order, CG has to cache the current frame anyway. By applying the frame diff to the current frame, CG can generate the next frame. So after drawing the current frame of an animated image, WebKit does not need to cache it because it is already cached by CG.
<rdar://problem/31231750>