RLS: Fix scroll offsets on RTL pages with horizontal overflow.

Clamping the root PLSA should be done after the FrameView is resized,
because the size of the FrameView determines the scroll bounds of the
layout viewport (through LayoutView::OverflowClipRect).

This fixes two symptoms:

- incorrect initial scroll offset on Android, where the FrameView's
  width at construction time is the 980px layout fallback width

- failure to preserve scroll offset during window resize on desktop,
  since the clamping was based on the previous size

Bug: 807987
Change-Id: I6a6d2a25879fe8e89d3e1d6b958b3e6754c0108e
Reviewed-on: https://chromium-review.googlesource.com/911946
Reviewed-by: David Bokan <bokan@chromium.org>
Commit-Queue: Steve Kobes <skobes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535946}
2 files changed