It's silly to duplicate this code everywhere.
Created attachment 43611 [details] Patch
Comment on attachment 43611 [details] Patch OK.
Comment on attachment 43611 [details] Patch Clearing flags on attachment: 43611 Committed r51259: <http://trac.webkit.org/changeset/51259>
All reviewed patches have been landed. Closing bug.