This is a refactoring.
Created attachment 83286 [details]
I wanted to refactor removeImplicitlyStyledElement as well but that turned out to be more challenging than I initially anticipated so I'll do that in a separate patch.
Attachment 83286 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/7946154
Created attachment 83287 [details]
cleanup; fixed build
Committed r79382: <http://trac.webkit.org/changeset/79382>