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

Issue 17454: Fixing gradient problem. (Closed)

Created:
11 years, 11 months ago by Finnur
Modified:
9 years, 6 months ago
Reviewers:
brettw, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fixing the problem with SVG gradients. Before, we were transforming paths when drawing the paths which would not work for gradients because scaling is applied during setup() in SVGPaintServerGradient and we would end up scaling again when drawing. We now apply the transform when we add the path instead. This should fix a few SVG tests, which I am working on in a separate changelist.

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -7 lines) Patch
M third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp View 1 2 3 4 5 3 chunks +4 lines, -4 lines 2 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PathSkia.cpp View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/WebCore/platform/graphics/skia/PlatformContextSkia.cpp View 1 2 3 4 5 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
brettw
http://codereview.chromium.org/17454/diff/1/5 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/1/5#newcode1043 Line 1043: if (!IsPathReasonable(getCTM().inverse(), path)) I think the right thing ...
11 years, 11 months ago (2009-01-09 18:47:17 UTC) #1
Evan Stade
http://codereview.chromium.org/17454/diff/1/5 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/1/5#newcode302 Line 302: platformContext()->addPath(*transformed_path.platformPath()); nit: use the addPath(path, transform) method
11 years, 11 months ago (2009-01-09 18:58:49 UTC) #2
Evan Stade
http://codereview.chromium.org/17454/diff/1/5 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/1/5#newcode302 Line 302: platformContext()->addPath(*transformed_path.platformPath()); nevermind, I misread this. Why is the ...
11 years, 11 months ago (2009-01-09 19:00:46 UTC) #3
brettw
http://codereview.chromium.org/17454/diff/1/5 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/1/5#newcode302 Line 302: platformContext()->addPath(*transformed_path.platformPath()); On 2009/01/09 19:00:46, Evan Stade wrote: > ...
11 years, 11 months ago (2009-01-09 19:19:24 UTC) #4
Evan Stade
http://codereview.chromium.org/17454/diff/16/206 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/16/206#newcode1054 Line 1054: if (!isPathSkiaSafe(SkMatrix(), path)) shouldn't this be if (!isPathSkiaSafe(SkMatrix(), ...
11 years, 11 months ago (2009-01-09 21:52:54 UTC) #5
Finnur
I have uploaded a new patch. Unfortunately, I had to sync to tot because the ...
11 years, 11 months ago (2009-01-09 22:47:32 UTC) #6
Evan Stade
On 2009/01/09 22:47:32, Finnur wrote: > I have uploaded a new patch. Unfortunately, I had ...
11 years, 11 months ago (2009-01-09 22:53:58 UTC) #7
Finnur
My bad. Misunderstood you. Sorry. I uploaded a new patch.
11 years, 11 months ago (2009-01-09 23:22:37 UTC) #8
brettw
http://codereview.chromium.org/17454/diff/213/42 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/213/42#newcode679 Line 679: if (!isPathSkiaSafe(SkMatrix(), *platformContext()->currentPathInGlobalCoordinates())) It seems weird that you ...
11 years, 11 months ago (2009-01-09 23:28:06 UTC) #9
Evan Stade
1 nit LGTM with or without addressing the nit http://codereview.chromium.org/17454/diff/213/42 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/213/42#newcode701 Line ...
11 years, 11 months ago (2009-01-09 23:28:53 UTC) #10
Finnur
I did what Brett suggested and also removed the WebCore TransformationMatrix type from the AddPath ...
11 years, 11 months ago (2009-01-10 00:09:22 UTC) #11
brettw
LGTM
11 years, 11 months ago (2009-01-10 00:18:03 UTC) #12
Evan Stade
http://codereview.chromium.org/17454/diff/47/51 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/47/51#newcode689 Line 689: platformContext()->setFillRule(state.fillRule == RULE_EVENODD ? found the bug :( ...
11 years, 11 months ago (2009-01-13 00:19:17 UTC) #13
brettw
http://codereview.chromium.org/17454/diff/47/51 File third_party/WebKit/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp (right): http://codereview.chromium.org/17454/diff/47/51#newcode689 Line 689: platformContext()->setFillRule(state.fillRule == RULE_EVENODD ? On 2009/01/13 00:19:18, Evan ...
11 years, 11 months ago (2009-01-13 17:44:36 UTC) #14
Finnur
This is getting a little hard to keep track of. This changelist is checked in ...
11 years, 11 months ago (2009-01-13 18:23:38 UTC) #15
Evan Stade
11 years, 11 months ago (2009-01-13 18:37:25 UTC) #16
> In looking into platformContext()->setFillRule, I think it should be deleted.

Agreed.

> This is getting a little hard to keep track of. This changelist is checked in
> and these look like a comment for a future changelist for estade, since this
is
> referring to changes he made on top of my changelist. I will assume this is
for
> him.

Yea, you should close this issue so we stop posting to it :)

Powered by Google App Engine
This is Rietveld 408576698