Bug 1040598 - (Part VI) Always wait for IMEngine before rendering the layout
Bug 1040598 - (Part VII) Remove sync reflow workaround
Bug 1040598 - (Part VIII) Introduce StateManager