Summary: | [Qt] Canvas gradients don't work as expected | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dirk Schulze <krit> | ||||||||
Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | hausmann | ||||||||
Priority: | P2 | Keywords: | Qt | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | PC | ||||||||||
OS: | All | ||||||||||
URL: | http://developer.mozilla.org/samples/canvas-tutorial/4_10_canvas_radialgradient.html | ||||||||||
Attachments: |
|
Description
Dirk Schulze
2008-09-08 10:52:03 PDT
Created attachment 23266 [details]
Qt radial gradients
fixed radial gradients on Qt
Created attachment 23314 [details] Qt gradients reused old canvas-code to get multiple color-stops with the same offset to work: http://developer.mozilla.org/samples/canvas-tutorial/4_9_canvas_lineargradient.html and added the code above to support the inner radius as well as the outer radius on Canvas: http://developer.mozilla.org/samples/canvas-tutorial/4_10_canvas_radialgradient.html -> gradients fixed Comment on attachment 23314 [details]
Qt gradients
Looks good, but there's a small coding style nitpick:
If (qFuzzyCompare(...)) {
one line of code
} else
another line of code
There's no need for braces in one-liners
Created attachment 23326 [details]
Qt gradients
deleted braces :-)
Comment on attachment 23326 [details]
Qt gradients
Thanks!
|