Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Issue 2606913002: Remove BoxBorderPainter::drawBleedAdjustedDRRect() assert (Closed)

Created:
3 years, 11 months ago by f(malita)
Modified:
3 years, 11 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove BoxBorderPainter::drawBleedAdjustedDRRect() assert While we only ever use BackgroundBleedClipLayer when hasBorderRadius() is true, certain degenerate radius values can cause the computed radii to be zero. In that case the assert no longer holds. The simplest thing to do is drop the assert: SkPath::addRRect() checks for the simple rect case and behaves optimally anyway. BUG=615814 R=chrishtr@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/f55c47a99fd4f05e07f5ecc1bd29c359082f43d8 Cr-Commit-Position: refs/heads/master@{#440981}

Patch Set 1 #

Patch Set 2 : layout test #

Total comments: 2

Patch Set 3 : relocate test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/paint/roundedrects/degenerate-radius-assert.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/roundedrects/degenerate-radius-assert-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
chrishtr
add the accompanying test?
3 years, 11 months ago (2016-12-28 16:14:48 UTC) #4
f(malita)
3 years, 11 months ago (2016-12-28 16:15:48 UTC) #5
f(malita)
On 2016/12/28 16:14:48, chrishtr wrote: > add the accompanying test? done
3 years, 11 months ago (2016-12-29 13:27:11 UTC) #10
chrishtr
lgtm
3 years, 11 months ago (2016-12-29 16:48:00 UTC) #14
chrishtr
https://codereview.chromium.org/2606913002/diff/20001/third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html File third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html (right): https://codereview.chromium.org/2606913002/diff/20001/third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html#newcode6 third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html:6: background-image: url("data:image/svg+xml,"); Put this test in paint/roundedrects/ instead, we're ...
3 years, 11 months ago (2016-12-29 16:49:04 UTC) #16
f(malita)
https://codereview.chromium.org/2606913002/diff/20001/third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html File third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html (right): https://codereview.chromium.org/2606913002/diff/20001/third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html#newcode6 third_party/WebKit/LayoutTests/fast/borders/degenerate-radius-assert.html:6: background-image: url("data:image/svg+xml,"); On 2016/12/29 16:49:04, chrishtr wrote: > Put ...
3 years, 11 months ago (2016-12-29 18:51:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2606913002/40001
3 years, 11 months ago (2016-12-29 18:52:14 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
3 years, 11 months ago (2016-12-29 20:18:08 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:53:01 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f55c47a99fd4f05e07f5ecc1bd29c359082f43d8
Cr-Commit-Position: refs/heads/master@{#440981}

Powered by Google App Engine
This is Rietveld 408576698