Part of https://bugs.webkit.org/show_bug.cgi?id=128363
Created attachment 223481 [details] patch
http://trac.webkit.org/changeset/163640