Change handling of saturated size of uniting PhysicalRects
If a layer has a child that has a large negative inset for the top/left properties, along with other content, the size of the layer can exceed the max layout unit in either dimension. When this happens, currently the min of left/top is used when creating the clip rect for the layer, but because of the size limitations, the content that is actually in view is not painted. Instead of using the min for left/top, favor the positive (right/bottom) portion of the rect when the size is saturated up against the LayoutUnit max value. Bug: 1122807 Change-Id: I8276f1556eebb3c9f197e0fba36571f7e7dd4546 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391389Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Daniel Libby <dlibby@microsoft.com> Cr-Commit-Position: refs/heads/master@{#804560}
Showing
Please register or sign in to comment