Apply bleed-avoidance insets _after_ constraining the border
When shrinking the background to avoid bleeding artifacts, apply the
inset after computing and constraining the (outer) border. If the
shrinking inset is applied before constraining, the shape of the border
will differ in some (extreme) cases. It's also more consistent with
how 'double' style borders are handled.
This allows dropping the optional FloatRectOutsets argument from
ComputedStyle::getRoundedBorderFor() and
BoxPainter::getBackgroundRoundedRect().
BUG=473119,445598
Review URL: https://codereview.chromium.org/1137513003
git-svn-id: svn://svn.chromium.org/blink/trunk@195263 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed