Refactor cc painted scrollbar

- Remove unused cc/layers/scrollbar_theme_painter.h
- Add comments in cc::Scrollbar
- Remove rect parameter from cc::Scrollbar::PaintPart() because the
  rect can be easily calculated by blink, given that the coordinate
  space of the canvas is clearly defined
- Improve performance of blink::ScrollbarLayerDelegate::HasTickMarks
  (implementation of cc::Scrollbar::HasTickMarks()). The old
  implementation queried all tick marks and see if it was empty, which
  may be slow when there are a lot of tick marks (e.g. when searching
  in a huge document).
- Add blink::ScrollbarTheme::PaintTrackAndButtonsForCompositor() to
  avoid exposing too much details of ScrollbarTheme to outside.

This is a preparation for CompositeAfterPaint composited scrollbar
implementation.

Change-Id: Ibf8c7a90d80ddf972f215495d0fd89470fa2deb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1834286
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702201}
28 files changed