Replace fill_color and stroke_color with fill_style and stroke_style in CanvasContextState.

The fillStyle and strokeStyle attributes can be either
strings(color), CanvasGradients, or CanvasPatterns.
This commit is contained in:
Hyowon Kim 2015-06-05 14:54:45 +09:00
parent ad5846f2e1
commit 5bbfb42e90
5 changed files with 53 additions and 34 deletions

View file

@ -22,6 +22,7 @@ pub struct CanvasGradient {
}
#[jstraceable]
#[derive(Clone)]
pub enum CanvasGradientStyle {
Linear(LinearGradientStyle),
Radial(RadialGradientStyle),