Reattach when wrapping in webkit for correct text flow  (#10536)

Change-Id: I431b6a3c61a9308ad4189e5d79a5e70de8f1f560