[PE] Fix DCHECKs that trigger on a transformed tr with abspos div.
The code in place handles cases where the container is a TableSection with a transform. Extend this to also work when the container is a TableRow with a transform. In general, this patch changes IsTableSection to IsTablePart to handle any part of the table that can be a container. This also changes the EnclosingIntRect to RoundedIntRect in a DCHECK, since offsets under EnclosingIntRect are susceptible to int differences when the source has small floating point changes. For example, -1.0000028610 offset in one rect becomes -2, but -1.0000000000 stays -1. R=chrishtr@chromium.org Bug: 804952 Change-Id: Ibc1e062953c1c6bc436101705d4842209e6af707 Reviewed-on: https://chromium-review.googlesource.com/884681Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: vmpstr <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/master@{#531977}
Showing
Please register or sign in to comment