Bug 940153 - Build dom/encoding in unified mode; r=bzbarsky

--HG--
extra : rebase_source : ee7223645f90a009eafbced43b8cfc2b93aeb47c