Fix several corner case issues of scrollbar paint invalidation
- Invalidate composited scrollbars also during paint invalidation to
avoid unnecessary invalidation on intermediate changes;
- Invalidate also on the containing box for moved/resized composited
non-overlay scrollbars. This ensures the expanded/shrunk areas of the
box because of scrollbar existence/width change are invalidated. This
is the root cause of bug 535161.
- Avoid unnecessary invalidations on overlay scrollbar changes.
BUG=535161,560418
Review URL: https://codereview.chromium.org/1491193003
Cr-Commit-Position: refs/heads/master@{#363998}
23 files changed