[Webkit-unassigned] [Bug 51869] Shadows are not drawn when filling a rect with a gradient fillStyle on Mac and Chromium-Mac

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 4 13:36:05 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=51869





--- Comment #8 from Simon Fraser (smfr) <simon.fraser at apple.com>  2011-01-04 13:36:05 PST ---
The real issue is that GraphicsContext::fillRect(const FloatRect& rect) is clipping to the rect. So the shadow is being drawn, it's just getting clipped to the rect being filled (you can see this if you remove the shadow; the gradient looks lighter).

So you may have to draw the gradient into a transparency layer (clipped), and then render that (unclipped).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list