Make changes to rootOfCurrentDocumentFragment and viewportElement propagate to children.

If these changes aren't propagated to child nodes then errors can happen after doing DOM editing and then recreating CALayerTree.