mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement gradient fill styles for canvas.
This commit is contained in:
parent
34950418ea
commit
d3199aef74
55 changed files with 290 additions and 228 deletions
|
@ -34,6 +34,7 @@ use dom::bindings::refcounted::Trusted;
|
|||
use dom::bindings::utils::{Reflectable, Reflector, WindowProxyHandler};
|
||||
use script_task::ScriptChan;
|
||||
|
||||
use canvas::canvas_paint_task::{CanvasGradientStop, LinearGradientStyle, RadialGradientStyle};
|
||||
use cssparser::RGBA;
|
||||
use encoding::types::EncodingRef;
|
||||
use geom::matrix2d::Matrix2D;
|
||||
|
@ -233,6 +234,7 @@ no_jsmanaged_fields!(LengthOrPercentageOrAuto);
|
|||
no_jsmanaged_fields!(RGBA);
|
||||
no_jsmanaged_fields!(Matrix2D<T>);
|
||||
no_jsmanaged_fields!(StorageType);
|
||||
no_jsmanaged_fields!(CanvasGradientStop, LinearGradientStyle, RadialGradientStyle);
|
||||
|
||||
impl JSTraceable for Box<ScriptChan+Send> {
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue