Patch forthcoming.
Created attachment 201128 [details] work in progress
Created attachment 201250 [details] the patch
Created attachment 201251 [details] the patch Simplified a bit.
Created attachment 201253 [details] the patch Fix an assertion.
Landed in http://trac.webkit.org/changeset/149851