Handle border-image with fill and zero-width borders

Before this patch we require at least one border dimension (top, left,
bottom, right) to be non-zero to trigger the border painting.

This misses the case when we have a zero width border all around but a
border image and border-image-slice: <numbers> fill. The center part
of the border-image should be painted, regardless of the
border-widths.

See https://bugs.webkit.org/show_bug.cgi?id=142650 and related commit.
It's not an exact port but this patch is heavily inspired by
​sabouhallawa's fix.

BUG=493088

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

git-svn-id: svn://svn.chromium.org/blink/trunk@196489 bbb929c8-8fbe-4397-9dbb-9b2b20218538
18 files changed
tree: 85b0980e2c21cea9c40756f2007352322e7cf409
  1. third_party/