Bug 51521

Summary: Make ContextShadow work with the canvas coordinate system
Product: WebKit Reporter: Helder Correia <helder>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: alex, ariya.hidayat, krit, mdelaney7, mrobinson, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Description Helder Correia 2010-12-22 21:47:06 PST
Investigate how to adapt to the canvas coordinate system (Y-axis positive towards the North) inside ContextShadow.
Comment 1 Helder Correia 2010-12-22 22:33:43 PST
Please ignore the Description comment.
The goal is to investigate how to make ContextShadow work on top of the canvas coordinate system, i.e. in the limit the layer would be the same size of the canvas.
Comment 2 Dirk Schulze 2011-01-16 14:01:12 PST
(In reply to comment #1)
> Please ignore the Description comment.
> The goal is to investigate how to make ContextShadow work on top of the canvas coordinate system, i.e. in the limit the layer would be the same size of the canvas.

Can you discribe what you plan to do a bit further? ContextShadow should be as independent of any coordinate system as possible to reuse the code for CSS, Canvas and SVGFitler.
Comment 3 Ariya Hidayat 2011-01-17 10:45:05 PST
ContextShadow should not know about the coordinate system. This is the case right now because it wants to take into account that shadow on Canvas does not follow the Context2D's transformation.

The code will be much cleaner if, inside the Canvas/Context2D logic, we apply the shadow on the buffer at the Canvas coordinate system. It's like rasterizing the shape onto the Canvas buffer.