Revert of Don't expand empty rect during rect mapping (patchset #4 id:60001 of
https://codereview.chromium.org/2416693002/ )
Reason for revert:
It changed
transform->mapRect(enclosingIntRect(rect))
to
transform->mapRect(FloatRect(enclosingIntRect(rect)))
causing missing enclosingIntRect() after the transform.
We may also need enclosingIntRect for empty rects because even empty
object can have visible filter depending on pixel snapping here.
BUG=
669774
TEST=paint/invalidation/rotated-subpixel.html
Original issue's description:
> Don't expand empty rect during rect mapping
>
> For example, enclosingIntRect(LayoutRect(0.5, 0.5, 0, 0)) results
> IntRect(0, 0, 1, 1). This causes unnecessary non-empty visual rects
> mapped from empty LayoutRects.
>
> This CL is mainly to reduce the difference between the old path and
> slimmingPaintInvalidation with pixel snapping feature.
>
> Committed:
https://crrev.com/67c516aaed2486295a98d7f0ff2235b921cd7933
> Cr-Commit-Position: refs/heads/master@{#424970}
TBR=chrishtr@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
Committed:
https://crrev.com/4774275d950261bf9ef99c55b326979298b5c558
Cr-Commit-Position: refs/heads/master@{#435677}