WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
15449
[CAIRO] SVG gradients do not work properly
https://bugs.webkit.org/show_bug.cgi?id=15449
Summary
[CAIRO] SVG gradients do not work properly
Alp Toker
Reported
2007-10-09 21:59:46 PDT
Linear gradients are often wrong and radial gradients are not implemented at all.
Attachments
Correct colors of gradients
(1.31 KB, patch)
2008-04-14 07:50 PDT
,
Dirk Schulze
no flags
Details
Formatted Diff
Diff
Add RadialGradient to Cairo
(1.95 KB, patch)
2008-04-14 11:15 PDT
,
Dirk Schulze
no flags
Details
Formatted Diff
Diff
Fixed colors and drawing of Gradients in Cairo
(3.64 KB, patch)
2008-04-15 09:45 PDT
,
Dirk Schulze
no flags
Details
Formatted Diff
Diff
Fixed gradients for SVG in Cairo
(3.80 KB, patch)
2008-04-16 01:18 PDT
,
Dirk Schulze
no flags
Details
Formatted Diff
Diff
Fixed gradients for SVG in Cairo
(4.05 KB, patch)
2008-04-16 10:17 PDT
,
Dirk Schulze
no flags
Details
Formatted Diff
Diff
Fixed colors and drawing
(4.30 KB, patch)
2008-04-16 11:37 PDT
,
Dirk Schulze
eric
: review-
Details
Formatted Diff
Diff
Fixed gradients for SVG in Cairo
(4.25 KB, patch)
2008-04-16 22:34 PDT
,
Dirk Schulze
no flags
Details
Formatted Diff
Diff
Fixed gradients for SVG in Cairo
(4.44 KB, patch)
2008-04-17 13:08 PDT
,
Dirk Schulze
alp
: review+
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Dirk Schulze
Comment 1
2008-04-14 07:50:30 PDT
Created
attachment 20532
[details]
Correct colors of gradients This only correct the colors of gradients in svg. There are still problems with displaying linear gradients.
Dirk Schulze
Comment 2
2008-04-14 11:15:07 PDT
Created
attachment 20535
[details]
Add RadialGradient to Cairo Add basic radialGradient for SVG to Cairo. Don't inclued boundingBoxMode.
Dirk Schulze
Comment 3
2008-04-15 09:45:41 PDT
Created
attachment 20558
[details]
Fixed colors and drawing of Gradients in Cairo Fixed colors and drawing of Gradients in Cairo. boundingBoxMode is still missing for radian gradients. (This patch includes previous patches)
Dirk Schulze
Comment 4
2008-04-16 01:18:22 PDT
Created
attachment 20578
[details]
Fixed gradients for SVG in Cairo This Patch fixes problems with color-set and drawing of radial and linear gradients (fixed problems with boundingBoxMode too). Have problems with animation and gradients (but I have problems with animation all the time). Should be fixed in another bug-report. I don't believe that it is related to SVGPaintServerGradientCairo. Why should boundingBoxMode use strokeBBox? The qt-port uses something like that and the source-code is bigger with it.
Dirk Schulze
Comment 5
2008-04-16 10:17:21 PDT
Created
attachment 20590
[details]
Fixed gradients for SVG in Cairo (forgot a focal-test in radialGradient)
Dirk Schulze
Comment 6
2008-04-16 11:37:11 PDT
Created
attachment 20593
[details]
Fixed colors and drawing minor changes
Eric Seidel (no email)
Comment 7
2008-04-16 21:41:11 PDT
Comment on
attachment 20593
[details]
Fixed colors and drawing The patch in general looks fine. We don't generally pre-declare variables at the top of a block. That's C-style and this is C++. double cx, fx, cy, fy, radius, fradius; // one example These are extra braces according to our style guidelines: if ((fx + cx) < cx) { + fx = int(cos(angle) * radius) + 1; + } Otherwise it looks fine. Why are there no test changes? Does the GTK build still not have pixel tests?
Dirk Schulze
Comment 8
2008-04-16 22:34:20 PDT
Created
attachment 20611
[details]
Fixed gradients for SVG in Cairo Fixes to match coding-style.
Dirk Schulze
Comment 9
2008-04-17 13:08:03 PDT
Created
attachment 20635
[details]
Fixed gradients for SVG in Cairo It uses RenderPathCairo's strokeBBox now.
Alp Toker
Comment 10
2008-04-20 17:24:32 PDT
Comment on
attachment 20635
[details]
Fixed gradients for SVG in Cairo r=me
Alp Toker
Comment 11
2008-04-20 17:25:03 PDT
Landed in
r32284
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug