Some refactoring
Created attachment 242134 [details] patch
Comment on attachment 242134 [details] patch Attachment 242134 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4561831959986176 Number of test failures exceeded the failure limit.
Created attachment 242135 [details] Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-16 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
https://trac.webkit.org/r176510