[Webkit-unassigned] [Bug 15266] Canvas shadows on gradients and patterns don't work sensibly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 10 17:53:34 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=15266
Mihai Parparita <mihaip at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
CC| |mihaip at chromium.org
Ever Confirmed|0 |1
--- Comment #9 from Mihai Parparita <mihaip at chromium.org> 2010-12-10 17:53:34 PST ---
I briefly investigated this. It looks like the problem is that the GraphicsContext::fillRect implementation in GraphicsContextCG.cpp ignores shadows altogether for the case where there's a gradient. It ends up clipping to the rect to the filled and calling Gradient::Paint (as implemented in GradientCG.cpp). That just uses CGContextDrawLinearGradient, which doesn't use the context shadow.
Fixing this probably involves drawing the gradient into a temporary CG context and then drawing it into the canvas one using the codepath that drawImage uses, which uses drop shadows (and does the right thing for alpha).
--
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