mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Use the new WebRender conversion functions.
Remove the old ones.
This commit is contained in:
parent
71e542c424
commit
246b54507a
5 changed files with 89 additions and 285 deletions
|
@ -9,7 +9,7 @@
|
|||
// FIXME(rust-lang/rust#26264): Remove GenericEndingShape and GenericGradientItem.
|
||||
|
||||
use app_units::Au;
|
||||
use display_list::ToGfxColor;
|
||||
use display_list::ToLayout;
|
||||
use euclid::{Point2D, Size2D, Vector2D};
|
||||
use gfx::display_list;
|
||||
use model::MaybeAuto;
|
||||
|
@ -364,7 +364,7 @@ fn convert_gradient_stops(gradient_items: &[GradientItem], total_length: Au) ->
|
|||
assert!(offset.is_finite());
|
||||
stops.push(GradientStop {
|
||||
offset: offset,
|
||||
color: stop.color.to_gfx_color(),
|
||||
color: stop.color.to_layout(),
|
||||
})
|
||||
}
|
||||
stops
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue