RESOLVED FIXED147758
Shadows don't draw on fillText when using a gradient fill
https://bugs.webkit.org/show_bug.cgi?id=147758
Summary Shadows don't draw on fillText when using a gradient fill
Dean Jackson
Reported 2015-08-06 17:18:15 PDT
Shadows don't draw on fillText when using a gradient fill
Attachments
Patch (5.96 KB, patch)
2015-08-06 17:25 PDT, Dean Jackson
mmaxfield: review+
Dean Jackson
Comment 1 2015-08-06 17:25:45 PDT
Dean Jackson
Comment 2 2015-08-06 17:27:32 PDT
Myles C. Maxfield
Comment 3 2015-08-06 18:18:46 PDT
Comment on attachment 258426 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=258426&action=review > Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:2384 > + c->setLegacyShadow(shadowOffset, shadowRadius, shadowColor, shadowColorSpace); In some cases, can't this shadow be drawn at the same time as the real text, simply by setting some state on the context? We should do that if it's possible.
Dean Jackson
Comment 4 2015-08-06 18:26:48 PDT
Comment on attachment 258426 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=258426&action=review >> Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:2384 >> + c->setLegacyShadow(shadowOffset, shadowRadius, shadowColor, shadowColorSpace); > > In some cases, can't this shadow be drawn at the same time as the real text, simply by setting some state on the context? We should do that if it's possible. That's what we normally do. But in this case the real text is drawn just after here, into a mask, and then the mask applies to a pattern or gradient. So this is why we need to draw the shadow separately, before.
Dean Jackson
Comment 5 2015-08-07 12:44:41 PDT
Note You need to log in before you can comment on or make changes to this bug.