Avoid LayoutFullScreen to be orthogonal writing-mode roots when reattached

The previous CL to avoid LayoutFullScreen to be orthogonal writing-mode
roots[1] copied the writing-mode when adding it to the parent. However,
when reattach occurs, LayoutTreeBuilder creates LayoutFullScreen
before the target is added to the parent, and thus LayoutFullScreen
fails to copy from the parent.

This patch copies the writing-mode when creating LayoutFullScreen.

[1] http://crrev.com/1721653002

BUG=638571

Review-Url: https://codereview.chromium.org/2258973002
Cr-Commit-Position: refs/heads/master@{#413089}
6 files changed