Move the code to NodeRenderingTraversal which is the only client.
Created attachment 210967 [details] patch
https://trac.webkit.org/r155292