Bug 51521 - Make ContextShadow work with the canvas coordinate system
Summary: Make ContextShadow work with the canvas coordinate system
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-22 21:47 PST by Helder Correia
Modified: 2014-04-03 02:20 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.