[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
Wed Jan 5 01:01:48 PST 2011


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





--- Comment #10 from Helder Correia <helder at sencha.com>  2011-01-05 01:01:49 PST ---
(In reply to comment #8)
> The real issue is that GraphicsContext::fillRect(const FloatRect& rect) is clipping to the rect.

Indeed. Patch 77980 seems to fix that. I'm not sure if the addition of Gradient::paint(CGContextRef) is the best way to go, but ATM seems like the most convenient to me.

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

I can't seem to clip the layer. If I add CGContextClipToRect(layerContext, rect) after the creation of the layer, the top box will be slightly translated in both axis. I guess I'm missing something possibly obvious.

-- 
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