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

Issue 195793009: [CSS Shapes] inset does not properly clamp large corner radii (Closed)

Created:
6 years, 9 months ago by rwlbuis
Modified:
6 years, 9 months ago
CC:
blink-reviews, jamesr, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jbroman, danakj, Rik, jchaffraix+rendering, pdr., Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[CSS Shapes] inset does not properly clamp large corner radii Make sure that radii that are larger than 50% of the associated shape dimension (height or width) are properly reduced the same way as border-radius radii are. Ported over from http://trac.webkit.org/changeset/165261. BUG=351775 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169086

Patch Set 1 #

Patch Set 2 : Oops, add tests #

Total comments: 3

Patch Set 3 : Fix bug references #

Total comments: 3

Patch Set 4 : Move calcBorderRadiiConstraintScaleFor to RenderStyle.h #

Patch Set 5 : Remove the explicit inline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -46 lines) Patch
A + LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius.html View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
A + LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M Source/core/rendering/shapes/Shape.cpp View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.cpp View 1 2 3 4 4 chunks +34 lines, -33 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rwlbuis
6 years, 9 months ago (2014-03-12 17:04:01 UTC) #1
Bem Jones-Bey (adobe)
https://codereview.chromium.org/195793009/diff/10001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html File LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html (right): https://codereview.chromium.org/195793009/diff/10001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html#newcode63 LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html:63: <p>Bug <a href="http://webkit.org/b/129726">129726</a>: [CSS Shapes] inset does not properly ...
6 years, 9 months ago (2014-03-12 17:16:46 UTC) #2
rwlbuis
On 2014/03/12 17:16:46, Bem Jones-Bey (adobe) wrote: > https://codereview.chromium.org/195793009/diff/10001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html > File > LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html > (right): ...
6 years, 9 months ago (2014-03-12 17:29:57 UTC) #3
Bem Jones-Bey (adobe)
A nit, but lgtm. (now all you need is a real owner. ;-) https://codereview.chromium.org/195793009/diff/30001/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-inset-rounded-large-radius-expected.html File ...
6 years, 9 months ago (2014-03-12 17:48:20 UTC) #4
rwlbuis
@Levi, straightforward port again from WebKit, however we are not sure we need the change ...
6 years, 9 months ago (2014-03-12 17:55:44 UTC) #5
eseidel
https://codereview.chromium.org/195793009/diff/30001/Source/platform/geometry/FloatRoundedRect.h File Source/platform/geometry/FloatRoundedRect.h (right): https://codereview.chromium.org/195793009/diff/30001/Source/platform/geometry/FloatRoundedRect.h#newcode135 Source/platform/geometry/FloatRoundedRect.h:135: inline float calcBorderRadiiConstraintScaleFor(const FloatRect& rect, const FloatRoundedRect::Radii& radii) Why ...
6 years, 9 months ago (2014-03-12 18:10:03 UTC) #6
Bem Jones-Bey (adobe)
On 2014/03/12 18:10:03, eseidel wrote: > https://codereview.chromium.org/195793009/diff/30001/Source/platform/geometry/FloatRoundedRect.h > File Source/platform/geometry/FloatRoundedRect.h (right): > > https://codereview.chromium.org/195793009/diff/30001/Source/platform/geometry/FloatRoundedRect.h#newcode135 > ...
6 years, 9 months ago (2014-03-12 18:34:33 UTC) #7
rwlbuis
On 2014/03/12 18:34:33, Bem Jones-Bey (adobe) wrote: > On 2014/03/12 18:10:03, eseidel wrote: > > ...
6 years, 9 months ago (2014-03-12 19:36:47 UTC) #8
eseidel
If this is not perf critical, please consider making this non-inline, but otherwise lgtm.
6 years, 9 months ago (2014-03-12 19:38:31 UTC) #9
Bem Jones-Bey (adobe)
On 2014/03/12 19:38:31, eseidel wrote: > If this is not perf critical, please consider making ...
6 years, 9 months ago (2014-03-12 21:27:57 UTC) #10
rwlbuis
On 2014/03/12 21:27:57, Bem Jones-Bey (adobe) wrote: > On 2014/03/12 19:38:31, eseidel wrote: > > ...
6 years, 9 months ago (2014-03-12 22:08:38 UTC) #11
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 9 months ago (2014-03-12 22:19:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/195793009/70001
6 years, 9 months ago (2014-03-12 22:19:53 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 01:41:51 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_blink
6 years, 9 months ago (2014-03-13 01:41:52 UTC) #15
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 9 months ago (2014-03-13 01:48:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/195793009/70001
6 years, 9 months ago (2014-03-13 01:49:06 UTC) #17
commit-bot: I haz the power
6 years, 9 months ago (2014-03-13 05:04:37 UTC) #18
Message was sent while issue was closed.
Change committed as 169086

Powered by Google App Engine
This is Rietveld 408576698