Julien suggested that I add this method in bug 110349. It turns out there are a lot of places it can be used, so I'm separating using it into a separate bug for my sanity.
Created attachment 196217 [details] Patch Refactor to use helper method
Comment on attachment 196217 [details] Patch Clearing flags on attachment: 196217 Committed r147495: <http://trac.webkit.org/changeset/147495>
All reviewed patches have been landed. Closing bug.