This can be done in a simpler way.
Created attachment 326345 [details] patch
Created attachment 326346 [details] patch
Created attachment 326350 [details] patch
Created attachment 326353 [details] patch
Created attachment 326362 [details] patch
Comment on attachment 326362 [details] patch Clearing flags on attachment: 326362 Committed r224600: <https://trac.webkit.org/changeset/224600>
All reviewed patches have been landed. Closing bug.
<rdar://problem/35562316>