convertToRange() is duplicated in Mac and iOS code, and it's really cross-platform.
Created attachment 226970 [details] proposed patch
Attachment 226970 [details] did not pass style-queue: ERROR: Source/WebKit2/WebProcess/WebPage/WebPage.cpp:4344: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Committed <http://trac.webkit.org/r165767>.