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

Issue 135913002: Do refactor in collectGradientAttributes() and renderStyleForLengthResolve() (Closed)

Created:
6 years, 11 months ago by gyuyoung-inactive
Modified:
6 years, 11 months ago
Reviewers:
Stephen Chennney
CC:
blink-reviews, pdr, Stephen Chennney, krit, f(malita), rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Some SVG functions have done a first iteration by using a boolean flag. This is one of poor implementations. This cl fix it by extracting a logic into a new method. Additionally it would be good to use do-while() loop instead of using while() in renderStyleForLengthResolving() because a first condition is always true. BUG=N/A Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165358

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 15

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -91 lines) Patch
M Source/core/svg/SVGLengthContext.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGLinearGradientElement.cpp View 1 2 3 4 5 1 chunk +50 lines, -44 lines 0 comments Download
M Source/core/svg/SVGRadialGradientElement.cpp View 1 2 3 4 5 2 chunks +51 lines, -45 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
gyuyoung-inactive
Stephen ? could you take a look this issue ?
6 years, 11 months ago (2014-01-12 06:06:32 UTC) #1
gyuyoung-inactive
On 2014/01/12 06:06:32, gyuyoung wrote: > Stephen ? could you take a look this issue ...
6 years, 11 months ago (2014-01-13 07:33:23 UTC) #2
gyuyoung-inactive
https://codereview.chromium.org/135913002/diff/60001/Source/core/svg/SVGRadialGradientElement.cpp File Source/core/svg/SVGRadialGradientElement.cpp (right): https://codereview.chromium.org/135913002/diff/60001/Source/core/svg/SVGRadialGradientElement.cpp#newcode174 Source/core/svg/SVGRadialGradientElement.cpp:174: if (current->hasTagName(SVGNames::radialGradientTag)) { This moving do wrong behavior. I ...
6 years, 11 months ago (2014-01-13 16:12:12 UTC) #3
gyuyoung-inactive
Patch is fixed.
6 years, 11 months ago (2014-01-14 10:50:02 UTC) #4
Stephen Chennney
I'm not happy with this - I think you can do even better. In the ...
6 years, 11 months ago (2014-01-14 13:44:15 UTC) #5
gyuyoung-inactive
On 2014/01/14 13:44:15, Stephen Chenney wrote: > I'm not happy with this - I think ...
6 years, 11 months ago (2014-01-15 10:56:20 UTC) #6
gyuyoung-inactive
On 2014/01/14 13:44:15, Stephen Chenney wrote: > I'm not happy with this - I think ...
6 years, 11 months ago (2014-01-16 02:10:39 UTC) #7
Stephen Chennney
This is a much better patch. The comments below for radial also apply to linear. ...
6 years, 11 months ago (2014-01-16 02:19:51 UTC) #8
gyuyoung-inactive
Stephen, thank you for your review. I reply to your comments. https://codereview.chromium.org/135913002/diff/200001/Source/core/svg/SVGRadialGradientElement.cpp File Source/core/svg/SVGRadialGradientElement.cpp (right): ...
6 years, 11 months ago (2014-01-16 02:34:01 UTC) #9
gyuyoung-inactive
On 2014/01/16 02:34:01, gyuyoung wrote: > Stephen, thank you for your review. I reply to ...
6 years, 11 months ago (2014-01-16 02:42:19 UTC) #10
gyuyoung-inactive
I fixed this patch again. How do you think ? https://codereview.chromium.org/135913002/diff/260001/Source/core/svg/SVGRadialGradientElement.cpp File Source/core/svg/SVGRadialGradientElement.cpp (left): https://codereview.chromium.org/135913002/diff/260001/Source/core/svg/SVGRadialGradientElement.cpp#oldcode184 ...
6 years, 11 months ago (2014-01-16 03:34:10 UTC) #11
Stephen Chennney
Nearly there. We can make it a little more efficient and it's worth doing it ...
6 years, 11 months ago (2014-01-16 15:39:34 UTC) #12
gyuyoung-inactive
https://codereview.chromium.org/135913002/diff/260001/Source/core/svg/SVGLinearGradientElement.cpp File Source/core/svg/SVGLinearGradientElement.cpp (right): https://codereview.chromium.org/135913002/diff/260001/Source/core/svg/SVGLinearGradientElement.cpp#newcode124 Source/core/svg/SVGLinearGradientElement.cpp:124: return false; On 2014/01/16 15:39:34, Stephen Chenney wrote: > ...
6 years, 11 months ago (2014-01-17 05:38:26 UTC) #13
Stephen Chennney
LGTM. Thanks for working through it. Let's wait on the try bots before committing.
6 years, 11 months ago (2014-01-17 15:42:07 UTC) #14
gyuyoung-inactive
On 2014/01/17 15:42:07, Stephen Chenney wrote: > LGTM. Thanks for working through it. Let's wait ...
6 years, 11 months ago (2014-01-18 00:35:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gyuyoung.kim@samsung.com/135913002/400001
6 years, 11 months ago (2014-01-18 00:43:02 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-18 02:56:41 UTC) #17
Message was sent while issue was closed.
Change committed as 165358

Powered by Google App Engine
This is Rietveld 408576698