mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Update WR (gradient features).
This commit is contained in:
parent
eee25e2313
commit
aea7d46b91
4 changed files with 64 additions and 68 deletions
|
@ -370,12 +370,11 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
let start_point = item.gradient.start_point.to_pointf();
|
||||
let end_point = item.gradient.end_point.to_pointf();
|
||||
let clip = item.base.clip.to_clip_region(builder);
|
||||
builder.push_gradient(rect,
|
||||
clip,
|
||||
start_point,
|
||||
end_point,
|
||||
item.gradient.stops.clone(),
|
||||
ExtendMode::Clamp);
|
||||
let gradient = builder.create_gradient(start_point,
|
||||
end_point,
|
||||
item.gradient.stops.clone(),
|
||||
ExtendMode::Clamp);
|
||||
builder.push_gradient(rect, clip, gradient);
|
||||
}
|
||||
DisplayItem::Line(..) => {
|
||||
println!("TODO DisplayItem::Line");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue