Make Separator respect Border Insets
commit88884629a2d16b3bada55d3a34d03772a1ff1ad5
authorjonross <jonross@chromium.org>
Mon, 24 Nov 2014 14:50:20 +0000 (24 06:50 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 24 Nov 2014 14:50:45 +0000 (24 14:50 +0000)
treefeb83d0420b41598091ccdc4fd609bc18e20b129
parentfa0f1b8f5bc713bd262fa973ef4274da0169d922
Make Separator respect Border Insets
Change the painting of a Separator from Paint to OnPaint. By switching to a canvas that uses the local bounds, the painting can check for the bounds of the content area to paint the line. This allows for the use of Borders to define insets for the view.

BUG=402515
TEST=Manual testing of Browser context menus, Session Crash Bubble.

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

Cr-Commit-Position: refs/heads/master@{#305419}
ui/views/controls/separator.cc
ui/views/controls/separator.h