WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
44392
[Qt] Gradient: Support inner radius larger than outer radius
https://bugs.webkit.org/show_bug.cgi?id=44392
Summary
[Qt] Gradient: Support inner radius larger than outer radius
Andreas Kling
Reported
2010-08-21 22:09:08 PDT
We should reverse the gradient if the inner radius is larger than the outer one. This is relevant both for CSS and the CanvasGradient API. Example pages with apparent missing support: -
http://www.kaleidoscopeapp.com/
-
http://graphicpeel.com/cssiosicons
Fixing this will also cause us to pass the following tests: - canvas/philip/tests/2d.gradient.radial.outside2.html - canvas/philip/tests/2d.gradient.radial.outside3.html
Attachments
Proposed patch
(3.60 KB, patch)
2010-08-21 22:14 PDT
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
Proposed patch v2
(3.68 KB, patch)
2010-08-22 00:07 PDT
,
Andreas Kling
ariya.hidayat
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2010-08-21 22:14:57 PDT
Created
attachment 65047
[details]
Proposed patch
Andreas Kling
Comment 2
2010-08-22 00:07:58 PDT
Created
attachment 65049
[details]
Proposed patch v2 Updated patch addressing comments from Ariya on IRC.
Ariya Hidayat
Comment 3
2010-08-22 00:15:10 PDT
Comment on
attachment 65049
[details]
Proposed patch v2 LGTM.re=me. Minor issue: WebCore/platform/graphics/qt/GradientQt.cpp:76 + if (m_radial && !qFuzzyCompare(outerRadius, qreal(0))) { Should be qFuzzyCompare(1 + outerRadius, qreal(1)).
Andreas Kling
Comment 4
2010-08-22 01:39:32 PDT
Committed
r65783
: <
http://trac.webkit.org/changeset/65783
>
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