Have Slider paint its background behind its visuals
commitbdf05a13f9723f1286412557d1ab401bca6abe20
authorjonross <jonross@chromium.org>
Wed, 21 Jan 2015 20:43:21 +0000 (21 12:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 21 Jan 2015 20:44:49 +0000 (21 20:44 +0000)
treef34b2d7cb343e27340ebfe2d7fe53dc376f41cc6
parent5ce2ee76f1512eda7073c9d87ebf960fe5177745
Have Slider paint its background behind its visuals

Slider currently paints its control before calling View::OnPaint. If a background or border is set they will paint over the actual slider. Moving the call to View::OnPaint to before the custom painting in Slider.

TEST=Manual testing on a development branch. A background was set on a Slider in the SystemTray. The background no longer obscurs the slider.
BUG=447213

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

Cr-Commit-Position: refs/heads/master@{#312441}
ui/views/controls/slider.cc