Bug
1722532 [wpt PR 29807] - Don't pass transforms with negative M44 to MapEnclosedRectWith2dAxisAlignedTransform., a=testonly
Automatic update from web-platform-tests
Don't pass transforms with negative M44 to MapEnclosedRectWith2dAxisAlignedTransform.
This introduces gfx::Transform::NonDegeneratePreserves2dAxisAlignment
and uses it, rather than Preserves2dAxisAlignment, to guard all the
calls to cc::MathUtil::MapEnclosedRectWith2dAxisAlignedTransform other
than those in tests and those that result from
gfx::OverlayTransformToTransform.
Without this change, the new tests w-negative-002.html and
w-negative-003.html hit the !hc0.ShouldBeClipped() DCHECK(), though
w-negative-001.html does not, and this only happens with
--disable-features=CompositeAfterPaint (which is still the default in
web tests).
Fixed: 455874,
1173218,
1229117
Change-Id: I671f04084a92ac6a71b83444fbba2ff9520dbc5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3055870
Reviewed-by: weiliangc <weiliangc@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: David Baron <dbaron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#906332}
--
wpt-commits:
f0c21a69ac6374569e4c26e06b12a46c3a236396
wpt-pr: 29807