mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fix redundant closures in component/script/dom (#31917)
* fixed unnecessary conversions * resolved conflicts * resolved conflicts * fix redundant closures in component/script/dom * resolved conflicts * fixed formatting
This commit is contained in:
parent
f183170786
commit
1bc63801e7
26 changed files with 35 additions and 44 deletions
|
@ -710,10 +710,12 @@ impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element> {
|
|||
use cssparser::FromParsedColor;
|
||||
hints.push(from_declaration(
|
||||
shared_lock,
|
||||
PropertyDeclaration::BackgroundColor(
|
||||
specified::Color::from_rgba(color.red, color.green, color.blue, color.alpha)
|
||||
.into(),
|
||||
),
|
||||
PropertyDeclaration::BackgroundColor(specified::Color::from_rgba(
|
||||
color.red,
|
||||
color.green,
|
||||
color.blue,
|
||||
color.alpha,
|
||||
)),
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -749,8 +751,7 @@ impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element> {
|
|||
hints.push(from_declaration(
|
||||
shared_lock,
|
||||
PropertyDeclaration::Color(longhands::color::SpecifiedValue(
|
||||
specified::Color::from_rgba(color.red, color.green, color.blue, color.alpha)
|
||||
.into(),
|
||||
specified::Color::from_rgba(color.red, color.green, color.blue, color.alpha),
|
||||
)),
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue