Compute solid-color scrollbar properties on all platforms.

It's unnecessary to gate solid-color scrollbar properties on whether
the root container masks to bounds, since the vertical adjust should
resolve to zero in this case anyway.  It's necessary to set VisibleToTotalLengthRatio
for desktop overlay scrollbars to be sized correctly.

BUG=331605
TEST=None
R=aelias

Review URL: https://codereview.chromium.org/106733005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243721 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/cc/layers/scrollbar_layer_impl_base.cc b/cc/layers/scrollbar_layer_impl_base.cc
index 362465be..e9b9569 100644
--- a/cc/layers/scrollbar_layer_impl_base.cc
+++ b/cc/layers/scrollbar_layer_impl_base.cc
@@ -66,6 +66,9 @@
 }
 
 void ScrollbarLayerImplBase::SetVisibleToTotalLengthRatio(float ratio) {
+  if (!IsThumbResizable())
+    return;
+
   if (visible_to_total_length_ratio_ == ratio)
     return;
   visible_to_total_length_ratio_ = ratio;