WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
41298
[Qt] Use HTML5-conformant gradient interpolation mode
https://bugs.webkit.org/show_bug.cgi?id=41298
Summary
[Qt] Use HTML5-conformant gradient interpolation mode
Andreas Kling
Reported
2010-06-28 13:10:19 PDT
The default behavior of QLinearGradient conflicts with the HTML5 specification. We should be doing per-component interpolation in linear rather than premultiplied space. Tthere's an internal method, QGradient::setInterpolationMode() for exactly this purpose. Quoth the spec: The color of the gradient at each stop is the color specified for that stop. Between each such stop, the colors and the alpha component must be linearly interpolated over the RGBA space without premultiplying the alpha value to find the color to use at that offset. This fixes one in-tree test for Qt: * canvas/philip/tests/2d.gradient.interpolate.colouralpha.html Spec link:
http://www.whatwg.org/specs/web-apps/current-work/#colors-and-styles
Attachments
Proposed patch
(2.54 KB, patch)
2010-06-28 13:14 PDT
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2010-06-28 13:14:44 PDT
Created
attachment 59927
[details]
Proposed patch
WebKit Commit Bot
Comment 2
2010-06-28 14:24:53 PDT
Comment on
attachment 59927
[details]
Proposed patch Clearing flags on attachment: 59927 Committed
r62037
: <
http://trac.webkit.org/changeset/62037
>
WebKit Commit Bot
Comment 3
2010-06-28 14:24:57 PDT
All reviewed patches have been landed. Closing bug.
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