It's implemented in MainThreadGLib.cpp for glib based ports, so ifdefs in MainThread.cpp should not be PLATFORM(GTK) but USE(GLIB)
Created attachment 304616 [details] Patch
Comment on attachment 304616 [details] Patch r=me
Committed r214035: <http://trac.webkit.org/changeset/214035>