There is a lot of code duplication taking place there now.
Created attachment 137871 [details] Patch
Committed r114623: <http://trac.webkit.org/changeset/114623>