[RootScroller] Allow main document horizontal overflow
When implicitly promoting an element to be the root scroller, we first check if the main document has any overflow. If it does, we err on the side of not promoting since it is likely the main document's content is important and meant to be scrollable. This heuristic turns out to be too restrictive. For example, this makes it hard to build a root scrolling carousel. This CL loosens the restriction to allow horizontal overflow. Bug: 838683 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I6007f6faa8e2006799a9dca6240b68ff0de7f09a Reviewed-on: https://chromium-review.googlesource.com/1165859 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/master@{#581408}
Showing
Please register or sign in to comment