"swap" would imply that both views end up... swapped. That's not what this function does, it replaces one with another.
Created attachment 147406 [details] patch
Thanks, Darin! Landed in http://trac.webkit.org/changeset/120277