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

Issue 923533004: [CSS Shapes] Normalize distances to closest/farthest side (Closed)

Created:
5 years, 10 months ago by rwlbuis
Modified:
5 years, 10 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[CSS Shapes] Normalize distances to closest/farthest side When calculating the radius given the center coordinate and reference box we could end up with negative radius for closest-side and center x/y larger than reference box width/height. Also just giving negative center x/y for closest-side can return negative radius. Catch all these cases by normalizing the distances to the sides for both ellipse and circle. BUG=457807, 455837 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190524

Patch Set 1 #

Patch Set 2 : Fix test #

Patch Set 3 : Remove ternary operator usage #

Patch Set 4 : Remove unrelated change #

Patch Set 5 : Fix style issue #

Total comments: 1

Patch Set 6 : Rename confusing radiusX/Y names #

Total comments: 1

Patch Set 7 : Abbreviate delta calculations #

Total comments: 3

Patch Set 8 : Fix ellipse case too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -4 lines) Patch
A LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash.html View 1 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-center-coord-positioning-crash-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/layout/style/BasicShapes.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
rwlbuis
PTAL. Likely a problem in WebKit too.
5 years, 10 months ago (2015-02-12 23:31:49 UTC) #2
rwlbuis
On 2015/02/12 23:31:49, rwlbuis wrote: > PTAL. Likely a problem in WebKit too. ping :)
5 years, 10 months ago (2015-02-17 18:32:43 UTC) #3
Zoltan
On 2015/02/17 18:32:43, rwlbuis wrote: > On 2015/02/12 23:31:49, rwlbuis wrote: > > PTAL. Likely ...
5 years, 10 months ago (2015-02-17 18:43:53 UTC) #4
rwlbuis
On 2015/02/17 18:43:53, Zoltan wrote: > On 2015/02/17 18:32:43, rwlbuis wrote: > > On 2015/02/12 ...
5 years, 10 months ago (2015-02-17 21:46:05 UTC) #5
Bem Jones-Bey (adobe)
So it took me a bit to wrap my mind around this one because of ...
5 years, 10 months ago (2015-02-19 18:41:06 UTC) #6
rwlbuis
On 2015/02/19 18:41:06, Bem Jones-Bey (adobe) wrote: > So it took me a bit to ...
5 years, 10 months ago (2015-02-19 18:54:23 UTC) #7
rwlbuis
@leviw PTAL
5 years, 10 months ago (2015-02-19 21:50:42 UTC) #10
leviw_travelin_and_unemployed
https://codereview.chromium.org/923533004/diff/100001/Source/core/layout/style/BasicShapes.cpp File Source/core/layout/style/BasicShapes.cpp (right): https://codereview.chromium.org/923533004/diff/100001/Source/core/layout/style/BasicShapes.cpp#newcode91 Source/core/layout/style/BasicShapes.cpp:91: heightDelta = center.y() - boxSize.height(); Will heightDelta ever not ...
5 years, 10 months ago (2015-02-19 21:59:44 UTC) #11
rwlbuis
On 2015/02/19 21:59:44, leviw wrote: > https://codereview.chromium.org/923533004/diff/100001/Source/core/layout/style/BasicShapes.cpp > File Source/core/layout/style/BasicShapes.cpp (right): > > https://codereview.chromium.org/923533004/diff/100001/Source/core/layout/style/BasicShapes.cpp#newcode91 > ...
5 years, 10 months ago (2015-02-19 22:55:31 UTC) #12
leviw_travelin_and_unemployed
https://codereview.chromium.org/923533004/diff/120001/Source/core/layout/style/BasicShapes.cpp File Source/core/layout/style/BasicShapes.cpp (right): https://codereview.chromium.org/923533004/diff/120001/Source/core/layout/style/BasicShapes.cpp#newcode131 Source/core/layout/style/BasicShapes.cpp:131: return std::min(std::abs(center), boxWidthOrHeight > center ? boxWidthOrHeight - center ...
5 years, 10 months ago (2015-02-19 22:56:53 UTC) #13
Bem Jones-Bey (adobe)
https://codereview.chromium.org/923533004/diff/120001/Source/core/layout/style/BasicShapes.cpp File Source/core/layout/style/BasicShapes.cpp (right): https://codereview.chromium.org/923533004/diff/120001/Source/core/layout/style/BasicShapes.cpp#newcode84 Source/core/layout/style/BasicShapes.cpp:84: float heightDelta = std::abs(boxSize.height() - center.y()); I don't seem ...
5 years, 10 months ago (2015-02-19 23:06:30 UTC) #14
rwlbuis
On 2015/02/19 23:06:30, Bem Jones-Bey (adobe) wrote: > https://codereview.chromium.org/923533004/diff/120001/Source/core/layout/style/BasicShapes.cpp > File Source/core/layout/style/BasicShapes.cpp (right): > > ...
5 years, 10 months ago (2015-02-19 23:12:17 UTC) #15
Bem Jones-Bey (adobe)
On 2015/02/19 23:12:17, rwlbuis wrote: > On 2015/02/19 23:06:30, Bem Jones-Bey (adobe) wrote: > > ...
5 years, 10 months ago (2015-02-19 23:16:33 UTC) #16
rwlbuis
On 2015/02/19 23:16:33, Bem Jones-Bey (adobe) wrote: > On 2015/02/19 23:12:17, rwlbuis wrote: > > ...
5 years, 10 months ago (2015-02-19 23:18:13 UTC) #17
rwlbuis
On 2015/02/19 23:18:13, rwlbuis wrote: > Thanks for clearing it up :) Hopefully we can ...
5 years, 10 months ago (2015-02-20 01:51:13 UTC) #18
leviw_travelin_and_unemployed
LGTM.
5 years, 10 months ago (2015-02-20 01:54:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/923533004/140001
5 years, 10 months ago (2015-02-20 01:56:04 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_chromium_gn_compile_rel/builds/26884)
5 years, 10 months ago (2015-02-20 02:15:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/923533004/140001
5 years, 10 months ago (2015-02-20 04:00:35 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 04:11:48 UTC) #26
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190524

Powered by Google App Engine
This is Rietveld 408576698