Remove duplicated code for image-strip computation in InlineFlowBoxPainter

The code to compute the "strip"/"slice" of an inline was duplicated for
the border, mask and fill cases.
Move this code to a new method paintRectForImageStrip.

BUG=423071

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

git-svn-id: svn://svn.chromium.org/blink/trunk@186531 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: 93cc4f78d2f434386589e8d60068b24f02e67af9
  1. third_party/