WebView: ClampScrollToMaxScrollOffset during activation
Chrome has a non-zero TopControlsHeight, so it already does this.
WebView needs to do it too.
A layer can be scrolled on active tree and pending tree, both scroll
offsets could be well within the boundary of max scroll offset. But
during an activation, the active tree and pending tree scrolls are
combined via SyncedProperty::PushPendingToActive. And the resulting
scroll offset isn't clamped to the new max scroll offset.
So WebView needs to clamp after pending and active tree synchronization.
BUG=389373
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1238823002
Cr-Commit-Position: refs/heads/master@{#340004}
2 files changed