Fix assert in GraphicsContext::IsSimpleDRRect
[1] added a couple of asserts, assuming the outer/inner radii are always following border invariants. But the same code path is also triggered for outline painting, which overrides some border properties to force rectangular outlines. Also, GraphicsContext is not a good place to make outer/inner geometry assumptions. Remove the asserts and replace with explicit width/height checks. [1] https://chromium.googlesource.com/chromium/src/+/e2eef42958b177eaf8cbbdae667c481d0789421c Bug: 861529 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I7deb45c42f2fef8dec2caf4cc90c0b52ee1b5f51 Reviewed-on: https://chromium-review.googlesource.com/1129328Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org> Cr-Commit-Position: refs/heads/master@{#573486}
Showing
Please register or sign in to comment