mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Auto merge of #17477 - servo:closures-by-ref, r=emilio
Pass some 48-bytes closures by references instead of by value. This reduced the generated code size by 74 KB: https://bugzilla.mozilla.org/show_bug.cgi?id=1375222#c4 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17477) <!-- Reviewable:end -->
This commit is contained in:
commit
567f5e8985
3 changed files with 8 additions and 8 deletions
|
@ -582,7 +582,7 @@ impl AnimationValue {
|
|||
&variables.url_data,
|
||||
variables.from_shorthand,
|
||||
&custom_props,
|
||||
|v| {
|
||||
&mut |v| {
|
||||
let declaration = match *v {
|
||||
DeclaredValue::Value(value) => {
|
||||
PropertyDeclaration::${prop.camel_case}(value.clone())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue