Refactor/share more 'image strip' painting code
Move NGClipRectForNinePieceImageStrip() to InlineBoxPainterBase (dropping the 'NG' prefix) and switch InlineFlowBoxPainter to using it. Clean up InlineFlowBoxPainter::PaintMask() to use the various member fields from the base class. Also straighten out the mask-box-image painting code a bit. Restructure InlineFlowBoxPainter::GetBorderPaintType() to more closely resemble the NG variant. Change-Id: Ia09be7a2c43b31a12e5538364fa0292a2246b291 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2585088Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#836179}
Showing
Please register or sign in to comment