To support viewport snapping on cc, before RootLayerScrolling is
enabled, we should plumb the SnapContainerData to the composited
scroll layers in PaintLayerCompositor.
This patch also makes sure that SnapAreaCalculation is correct
regardless of whether RootLayerScrolling is enabled or not.
Bug: 795404
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: I836f291e1c43d54f3d2470702934d6b63e8fc964
Reviewed-on: https://chromium-review.googlesource.com/878019
Commit-Queue: Sandra Sun <[email protected]>
Reviewed-by: David Bokan <[email protected]>
Reviewed-by: Majid Valipour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#534286}