Fix clipping bug using Android horizontal tab switcher in RTL mode
The Android horizontal tab switcher is currently using the same clipping/visibility logic as the existing overlapping tab switcher. This logic is largely unnecessary and is in fact causing a bug in RTL mode when we try to clip a tab from the left side as it goes off-screen (ContentLayer doesn't properly support clipping the live layer in this case). This CL splits up the visibility/clipping logic for the overlapping and non-overlapping tab switchers. For the non-overlapping tab switcher, the only logic we need is a performance optimization to only draw at most four tabs, based on which tab is currently centered. Bug: 849930,831359 Change-Id: Ia000e91b91615acf9f6b071b2d501ee55da231cc Reviewed-on: https://chromium-review.googlesource.com/1091164Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Ryan Landay <rlanday@chromium.org> Cr-Commit-Position: refs/heads/master@{#565658}
Showing
Please register or sign in to comment