This seems like an unnecessary optimization.
Created attachment 236443 [details] patch
Comment on attachment 236443 [details] patch r=me. This seemed a bit overkill indeed.
https://trac.webkit.org/r172487