Fix painting with root transform and a root element background image
Background images are painted by ViewPainter via a call to PaintFillLayer, passing a |paint_rect|. PaintFillLayer assumes that any offset from (0, 0) of |paint_rect| is the paint offset in the local transform space. This was not the case the root element has a transform. In those cases, remove the offset. Bug: 988446 Change-Id: I74439771ade6c9c7a54131a84b40ea9a0df5e25c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2018451Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#735029}
Showing


