It's a layering violation, that code belongs to the WebKit2 layer.
Created attachment 282238 [details]
To make the review easier I haven't changed any code, just moved it, updated the header includes and added some WebCore::. I plan to do further cleanup in a follow up patch.
Created attachment 282341 [details]
This should apply on trunk now
Comment on attachment 282341 [details]
Attachment 282341 [details] did not pass ios-sim-ews (ios-simulator-wk2):
New failing tests:
Created attachment 282343 [details]
Archive of layout-test-results from ews125 for ios-simulator-wk2
The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.4
(In reply to comment #3)
> Comment on attachment 282341 [details]
> Rebased patch
> Attachment 282341 [details] did not pass ios-sim-ews (ios-simulator-wk2):
> Output: http://webkit-queues.webkit.org/results/1594193
> New failing tests:
This is just code moved and shouldn't affect iOS at all.
Committed r202675: <http://trac.webkit.org/changeset/202675>