mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Further changes required by Servo
This commit is contained in:
parent
18c701e6b5
commit
0094560541
4 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ impl FilterToLayout for Filter {
|
|||
color: shadow
|
||||
.color
|
||||
.clone()
|
||||
.resolve_into_absolute(current_color)
|
||||
.resolve_to_absolute(current_color)
|
||||
.to_layout(),
|
||||
}),
|
||||
// Statically check that Url is impossible.
|
||||
|
|
|
@ -37,7 +37,7 @@ impl FilterToWebRender for ComputedFilter {
|
|||
ComputedFilter::DropShadow(ref shadow) => FilterOp::DropShadow(Shadow {
|
||||
blur_radius: shadow.blur.px(),
|
||||
offset: units::LayoutVector2D::new(shadow.horizontal.px(), shadow.vertical.px()),
|
||||
color: super::rgba(shadow.color.clone().resolve_into_absolute(current_color)),
|
||||
color: super::rgba(shadow.color.clone().resolve_to_absolute(current_color)),
|
||||
}),
|
||||
// Statically check that Url is impossible.
|
||||
ComputedFilter::Url(ref url) => match *url {},
|
||||
|
|
|
@ -368,7 +368,7 @@ impl Fragment {
|
|||
let text_decoration_color = fragment
|
||||
.parent_style
|
||||
.clone_text_decoration_color()
|
||||
.resolve_into_absolute(color);
|
||||
.resolve_to_absolute(color);
|
||||
let text_decoration_style = fragment.parent_style.clone_text_decoration_style();
|
||||
if text_decoration_style == ComputedTextDecorationStyle::MozNone {
|
||||
return;
|
||||
|
|
|
@ -1708,7 +1708,7 @@ pub fn parse_color(canvas: Option<&HTMLCanvasElement>, string: &str) -> Result<R
|
|||
};
|
||||
|
||||
let rgba = color
|
||||
.resolve_into_absolute(¤t_color)
|
||||
.resolve_to_absolute(¤t_color)
|
||||
.to_color_space(ColorSpace::Srgb);
|
||||
Ok(RGBA::from_floats(
|
||||
Some(rgba.components.0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue