mac content shell drt: Register fonts, like regular DRT does.
mac content shell drt: Register fonts, like regular DRT does.

On Linux and Windows, regular DumpRenderTree registers fonts in
DumpRenderTree/chromium/TestShellWin.cpp / TestShellX11.cpp.
Mac on the other hand has this code in AfterInitialize() in
webkit/support/platform_support_mac.mm (called from SetUpTestEnvironment(),
which is called from DumpRenderTree's main() function).

(It'd be nice to make the mac drt code look like windows and linux do, but
since drt will be replaced by content shell drt eventually, that's probably
not worth doing.)

content shell drt must not depend on webkit/, copy the font initialization
code into the designated setup function used by content shell -- this is also
where content shell drt does font setup on linux.

Since Content Shell.app uses the same app-in-app design as regular chrome
(I'm guessing for sandboxing reasons?) and DRT.gyp injects the ttf files into
its direct dependends (which is content_shell, not content_shell_helper), do
a little dance to find the right resource directory.

BUG= 111316
TEST=Run `webkit/tools/layout_tests/run_webkit_tests.sh --driver-name 'Content Shell' --additional-drt-flag=--dump-render-tree fast/text/shadow-translucent-fill.html`, verify there are green boxes, not green "A" characters.

Review URL: https://chromiumcodereview.appspot.com/12288033

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@183143 0039d316-1c4b-4281-b951-d872f2087c98

pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,Just-D/chromium-1,dednal/chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,zcbenz/cefode-chromium,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,dushu1203/chromium.src,Jonekee/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,Chilledheart/chromium,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,jaruba/chromium.src,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,patrickm/chromium.src,hujiajie/pa-chromium,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,littlstar/chromium.src,jaruba/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,anirudhSK/chromium,zcbenz/cefode-chromium,ondra-novak/chromium.src,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,patrickm/chromium.src,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,Just-D/chromium-1,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,M4sse/chromium.src,dushu1203/chromium.src,Just-D/chromium-1,patrickm/chromium.src,anirudhSK/chromium,bright-sparks/chromium-spacewalk,ltilve/chromium,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,jaruba/chromium.src,ltilve/chromium,axinging/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,littlstar/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,dednal/chromium.src,fujunwei/chromium-crosswalk,M4sse/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,dednal/chromium.src,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,markYoungH/chromium.src,Chilledheart/chromium,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,Jonekee/chromium.src,ltilve/chromium,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,patrickm/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,axinging/chromium-crosswalk,anirudhSK/chromium,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,markYoungH/chromium.src,zcbenz/cefode-chromium,littlstar/chromium.src,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,hujiajie/pa-chromium,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,jaruba/chromium.src,anirudhSK/chromium,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,ChromiumWebApps/chromium,ChromiumWebApps/chromium,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,chuan9/chromium-crosswalk,patrickm/chromium.src,ltilve/chromium,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,dednal/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,littlstar/chromium.src,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,ltilve/chromium,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,Just-D/chromium-1,M4sse/chromium.src,mogoweb/chromium-crosswalk,dushu1203/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,M4sse/chromium.src,dednal/chromium.src,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,axinging/chromium-crosswalk,markYoungH/chromium.src,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk,dednal/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,M4sse/chromium.src,Chilledheart/chromium,jaruba/chromium.src,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,ltilve/chromium,hujiajie/pa-chromium,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,ltilve/chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk