[LFC][IFC] Decouple display box construction for bidi and non-bidi content