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

Issue 115253003: Layout support for new circle shape syntax (Closed)

Created:
7 years ago by rwlbuis
Modified:
6 years, 11 months ago
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), zoltan1, eae+blinkwatch, dglazkov+blink, leviw+renderwatch, dstockwell, Timothy Loh, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, bemjb+rendering_chromium.org, Steve Block, dino_apple.com, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Layout support for new circle shape syntax Implement support for doing layout with the new circle shape syntax, including basic animation support. Add a few tests for the new circle syntax. The old tests in LayoutTests/csswg will be removed when the old syntax is removed. Also update existing shape-inside, animation, and clip-path tests to test the new syntax. Patch by Bem Jones-Bey. BUG=322165 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164731

Patch Set 1 #

Patch Set 2 : Add misisng test change for animations/interpolation/shape-outside.html #

Total comments: 2

Patch Set 3 : Update to refer to the Blink issue #

Patch Set 4 : Update virtual/legacy-animations-engine/animations/interpolation/shape-outside-expected.txt #

Total comments: 6

Patch Set 5 : Use hypotf #

Patch Set 6 : Use FloatSize/FloatPoint's more #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -77 lines) Patch
M LayoutTests/animations/interpolation/shape-outside.html View 1 1 chunk +8 lines, -8 lines 0 comments Download
M LayoutTests/animations/interpolation/shape-outside-expected.txt View 1 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/css3/masking/clip-path-animation.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/css3/masking/clip-path-animation-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/masking/clip-path-circle.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/css3/masking/clip-path-circle-filter.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/css3/masking/clip-path-circle-overflow.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/css3/masking/clip-path-circle-overflow-hidden.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/css3/masking/clip-path-circle-relative-overflow.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/css3/masking/clip-path-restore.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/shapes/parsing/parsing-shape-inside-expected.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/shapes/parsing/parsing-shape-outside-expected.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/shapes/parsing/parsing-test-utils.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-animation.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-animation-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-calc-crash.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-calc-crash-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-circle.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-circle-padding.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-dynamic-nested.html View 2 chunks +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-empty.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/shapes/shape-inside/shape-inside-empty-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/legacy-animations-engine/animations/interpolation/shape-outside-expected.txt View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/css/BasicShapeFunctions.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/BasicShapeFunctions.cpp View 1 2 3 4 5 1 chunk +33 lines, -0 lines 1 comment Download
M Source/core/rendering/shapes/Shape.cpp View 1 2 3 4 5 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/rendering/style/BasicShapes.h View 1 2 3 4 5 4 chunks +14 lines, -0 lines 0 comments Download
M Source/core/rendering/style/BasicShapes.cpp View 1 2 3 4 5 6 chunks +32 lines, -24 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Bem Jones-Bey (adobe)
lgtm, with a couple of nits: https://codereview.chromium.org/115253003/diff/40001/Source/core/rendering/style/BasicShapes.h File Source/core/rendering/style/BasicShapes.h (right): https://codereview.chromium.org/115253003/diff/40001/Source/core/rendering/style/BasicShapes.h#newcode146 Source/core/rendering/style/BasicShapes.h:146: // FIXME determine ...
7 years ago (2013-12-19 23:08:47 UTC) #1
rwlbuis
First trybot shows up green, so submit for review :)
7 years ago (2013-12-20 22:37:12 UTC) #2
Bem Jones-Bey (adobe)
On 2013/12/20 22:37:12, rwlbuis wrote: > First trybot shows up green, so submit for review ...
7 years ago (2013-12-20 23:55:10 UTC) #3
rwlbuis
On 2013/12/20 23:55:10, Bem Jones-Bey (adobe) wrote: > On 2013/12/20 22:37:12, rwlbuis wrote: > > ...
7 years ago (2013-12-21 00:34:17 UTC) #4
leviw_travelin_and_unemployed
6 years, 11 months ago (2014-01-07 19:33:03 UTC) #5
leviw_travelin_and_unemployed
https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/shapes/Shape.cpp File Source/core/rendering/shapes/Shape.cpp (right): https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/shapes/Shape.cpp#newcode159 Source/core/rendering/shapes/Shape.cpp:159: float centerX = floatValueForCenterCoordinate(circle->centerX(), boxWidth); I don't love having ...
6 years, 11 months ago (2014-01-07 19:41:33 UTC) #6
eseidel
https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp File Source/core/rendering/style/BasicShapes.cpp (right): https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp#newcode54 Source/core/rendering/style/BasicShapes.cpp:54: const BasicShapeCircle* otherCircle = static_cast<const BasicShapeCircle*>(other); How do we ...
6 years, 11 months ago (2014-01-07 19:47:16 UTC) #7
leviw_travelin_and_unemployed
https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp File Source/core/rendering/style/BasicShapes.cpp (right): https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp#newcode150 Source/core/rendering/style/BasicShapes.cpp:150: return floatValueForLength(m_radius.value(), sqrtf((boxWidth * boxWidth + boxHeight * boxHeight) ...
6 years, 11 months ago (2014-01-07 19:51:55 UTC) #8
rwlbuis
On 2014/01/07 19:47:16, eseidel wrote: > https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp > File Source/core/rendering/style/BasicShapes.cpp (right): > > https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp#newcode54 > ...
6 years, 11 months ago (2014-01-07 20:51:14 UTC) #9
rwlbuis
> https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp#newcode150 > > Source/core/rendering/style/BasicShapes.cpp:150: return > > floatValueForLength(m_radius.value(), sqrtf((boxWidth * boxWidth + boxHeight * ...
6 years, 11 months ago (2014-01-07 21:21:08 UTC) #10
Bem Jones-Bey (adobe)
On 2014/01/07 21:21:08, rwlbuis wrote: > > > https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/style/BasicShapes.cpp#newcode150 > > > Source/core/rendering/style/BasicShapes.cpp:150: return > ...
6 years, 11 months ago (2014-01-07 21:46:40 UTC) #11
rwlbuis
On 2014/01/07 19:41:33, Levi wrote: > https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/shapes/Shape.cpp > File Source/core/rendering/shapes/Shape.cpp (right): > > https://codereview.chromium.org/115253003/diff/120001/Source/core/rendering/shapes/Shape.cpp#newcode159 > ...
6 years, 11 months ago (2014-01-07 22:05:05 UTC) #12
rwlbuis
On 2014/01/07 21:46:40, Bem Jones-Bey (adobe) wrote: > On 2014/01/07 21:21:08, rwlbuis wrote: > > ...
6 years, 11 months ago (2014-01-07 22:05:19 UTC) #13
leviw_travelin_and_unemployed
lgtm https://codereview.chromium.org/115253003/diff/430001/Source/core/css/BasicShapeFunctions.cpp File Source/core/css/BasicShapeFunctions.cpp (right): https://codereview.chromium.org/115253003/diff/430001/Source/core/css/BasicShapeFunctions.cpp#newcode364 Source/core/css/BasicShapeFunctions.cpp:364: switch (centerX.keyword()) { I guess what I was ...
6 years, 11 months ago (2014-01-08 23:07:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/115253003/430001
6 years, 11 months ago (2014-01-09 00:15:18 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 03:03:19 UTC) #16
Message was sent while issue was closed.
Change committed as 164731

Powered by Google App Engine
This is Rietveld 408576698