mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
ad5846f2e1
commit
5bbfb42e90
5 changed files with 53 additions and 34 deletions
|
@ -22,6 +22,7 @@ pub struct CanvasGradient {
|
|||
}
|
||||
|
||||
#[jstraceable]
|
||||
#[derive(Clone)]
|
||||
pub enum CanvasGradientStyle {
|
||||
Linear(LinearGradientStyle),
|
||||
Radial(RadialGradientStyle),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue