Don't report layout shift when printing or painting preview
The bug is caused by integer overflow and DCHECK/CHECK failure when calculating the area of a layout shift region containing rects with geometry values like 2^31-1. The situation happens only during printing when layout shifts should not be reported because in normal cases the viewport clip limits the geometry of the region. Bug: 1151591 Change-Id: I3fd080eab1be31815668486dc555c227ff2cf4f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2557883 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Steve Kobes <skobes@chromium.org> Cr-Commit-Position: refs/heads/master@{#830770}
Showing
Please register or sign in to comment