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

Issue 2792163002: Add support for repeating-conic-gradient() (Closed)

Created:
3 years, 8 months ago by f(malita)
Modified:
3 years, 8 months ago
Reviewers:
Stephen Chennney, fs
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, reed1, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for repeating-conic-gradient() Since the underlying SkSweepGradient implementation doesn't support repeating color stops, generate synthetic stops to cover the whole unit interval. Interpolate colors for 0 and 1 when stops are not coincident. We can also remove the ConicGradient spread method ctor arg, as it serves no purpose. BUG=706973 Review-Url: https://codereview.chromium.org/2792163002 Cr-Commit-Position: refs/heads/master@{#462250} Committed: https://chromium.googlesource.com/chromium/src/+/65a58f0cd7291f90e7edd10ea42c7c8de24f3d1a

Patch Set 1 #

Patch Set 2 : relocate to CSSGradientValue #

Patch Set 3 : test, cleanup #

Patch Set 4 : test + Linux expectations #

Patch Set 5 : tweaked test #

Patch Set 6 : refactor, hopefully easier to follow #

Patch Set 7 : out of range test #

Patch Set 8 : simplified impl #

Total comments: 3

Patch Set 9 : baselines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -29 lines) Patch
A third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-out-of-range.html View 1 2 3 4 5 6 1 chunk +96 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient.html View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient-expected.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient-expected.txt View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/gradients/conic-gradient-out-of-range-expected.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/linux/fast/gradients/conic-gradient-out-of-range-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/conic-gradient-out-of-range-expected.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/conic-gradient-out-of-range-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/repeating-conic-gradient-expected.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac/fast/gradients/repeating-conic-gradient-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/fast/gradients/conic-gradient-out-of-range-expected.png View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/fast/gradients/conic-gradient-out-of-range-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSGradientValue.cpp View 1 2 3 4 5 6 7 9 chunks +114 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Gradient.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Gradient.cpp View 1 2 3 chunks +3 lines, -9 lines 0 comments Download

Messages

Total messages: 33 (27 generated)
f(malita)
Pending baselines, otherwise good to go.
3 years, 8 months ago (2017-04-05 18:21:16 UTC) #24
fs
lgtm https://codereview.chromium.org/2792163002/diff/140001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): https://codereview.chromium.org/2792163002/diff/140001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode516 third_party/WebKit/Source/core/css/CSSGradientValue.cpp:516: if (repeatSpan < std::numeric_limits<float>::epsilon()) { Should we be ...
3 years, 8 months ago (2017-04-05 19:19:57 UTC) #25
f(malita)
https://codereview.chromium.org/2792163002/diff/140001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): https://codereview.chromium.org/2792163002/diff/140001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode516 third_party/WebKit/Source/core/css/CSSGradientValue.cpp:516: if (repeatSpan < std::numeric_limits<float>::epsilon()) { On 2017/04/05 19:19:57, fs ...
3 years, 8 months ago (2017-04-05 19:33:57 UTC) #26
fs
https://codereview.chromium.org/2792163002/diff/140001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp File third_party/WebKit/Source/core/css/CSSGradientValue.cpp (right): https://codereview.chromium.org/2792163002/diff/140001/third_party/WebKit/Source/core/css/CSSGradientValue.cpp#newcode516 third_party/WebKit/Source/core/css/CSSGradientValue.cpp:516: if (repeatSpan < std::numeric_limits<float>::epsilon()) { On 2017/04/05 at 19:33:57, ...
3 years, 8 months ago (2017-04-05 20:04:11 UTC) #27
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/2792163002/160001
3 years, 8 months ago (2017-04-05 21:01:41 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 22:37:44 UTC) #33
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/65a58f0cd7291f90e7edd10ea42c...

Powered by Google App Engine
This is Rietveld 408576698