Bug 51521
Summary: | Make ContextShadow work with the canvas coordinate system | ||
---|---|---|---|
Product: | WebKit | Reporter: | Helder Correia <helder> |
Component: | Canvas | Assignee: | 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 |
Helder Correia
Investigate how to adapt to the canvas coordinate system (Y-axis positive towards the North) inside ContextShadow.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Helder Correia
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.
Dirk Schulze
(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.
Ariya Hidayat
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.