[LayoutNG] Fix inline mask painting for multi-line
In legacy layout multi-line image mask painting is handled by giving the entire width of the element to the painting code and then clipping it to ensure the left edge is omitted for all but the first line and the right edge is for all but the last. This is inefficient and different from how the logic to omit edges is implement for other border/image paint calls. This change adds include_logical_left_edge/include_logical_right_edge to the NinePieceImageGrid constructor and uses these new parameters to size the left and right edges respectively. Matching existing painting logic. Bug: 714962 Test: fast/borders/inline-mask-overlay-image.html Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_layout_ng;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I4bcefcc91115a9601632d9e1a0bce70b591cd0a6 Reviewed-on: https://chromium-review.googlesource.com/1048844 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#556671}
Showing
20.9 KB
10.6 KB