mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Improve style in properties.mako.rs
This commit is contained in:
parent
05deb3dcc8
commit
35dd1816a9
2 changed files with 66 additions and 68 deletions
|
@ -217,8 +217,8 @@ impl MediaQueryList {
|
|||
|
||||
// Check if all conditions match (AND condition)
|
||||
let query_match = media_match && mq.expressions.iter().all(|expression| {
|
||||
match expression {
|
||||
&Expression::Width(value) =>
|
||||
match *expression {
|
||||
Expression::Width(ref value) =>
|
||||
value.to_computed_range(viewport_size).evaluate(viewport_size.width),
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue