WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 228771
142516
background: radial-gradient draws circle instead of ellipse.
https://bugs.webkit.org/show_bug.cgi?id=142516
Summary
background: radial-gradient draws circle instead of ellipse.
Osamu Ohashi
Reported
2015-03-09 17:11:46 PDT
Created
attachment 248293
[details]
a reproducible HTML file, result image and a patch for fixing background: radial-gradient draws circle instead of ellipse. It always shows circle on our Linux Cairo Platform. I made a patch. Please review. I attached a file that has a HTML file, image files and a patch file. - test.html: reproducible HTML file - Elliptial_Gridients_issue.png: bug (showed CIRCLE incorrectly) - Elliptial_Gridients_expected.png: expected result that was on Chrome - GradientCairo.patch: patch file for fixing. diff Source/WebCore/platform/graphics/cairo/GradientCairo.cpp.2.6.5 Source/WebCore/platform/graphics/cairo/GradientCairo.c pp.2.6.5.fixed 58c58 < m_gradient = cairo_pattern_create_radial(m_p0.x(), m_p0.y(), m_r0, m_p1.x(), m_p1.y(), m_r1); ---
> m_gradient = cairo_pattern_create_radial(m_p0.x(), m_p0.y() * m_aspectRatio, m_r0, m_p1.x(), m_p1.y() * m_aspectRatio, m_r1);
82a83,86
> if (m_radial && m_aspectRatio != 1.0) { > cairo_matrix_scale(&matrix, 1.0, 1.0 / m_aspectRatio); > }
> Thanks, Osamu
Attachments
a reproducible HTML file, result image and a patch for fixing
(223.58 KB, application/zip)
2015-03-09 17:11 PDT
,
Osamu Ohashi
no flags
Details
Test Case
(2.34 KB, text/html)
2024-01-05 09:29 PST
,
Ahmad Saleem
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-01-05 09:29:32 PST
Created
attachment 469297
[details]
Test Case I don't have access to 'Windows' or 'Linux' platform to reproduce but attaching 'testcase' directly. Additionally, I tried to search for code via searchfox.org (wubkat) but couldn't manage to find (might have been rebased or updated).
Diego Pino
Comment 2
2024-01-05 12:14:59 PST
*** This bug has been marked as a duplicate of
bug 228771
***
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