This doesn't seem to do what the comment says.

this._allKeyframesUseCompositeAdd(..) is true if every frame is 'add', right? So !this._allKeyframesUseCompositeAdd(..) just means at least one frame uses 'replace'.