Repository navigation
style: Move will-change outside of mako - #19583
Conversation
|
Heads up! This PR modifies the following files:
|
| pub enum WillChange { | ||
| /// Expresses no particular intent | ||
| Auto, | ||
| /// scroll-position | contents | <custom-ident> |
There was a problem hiding this comment.
You can derive(ToCss) and use #[css(iterable, comma)] in this variant.
I'd remove the scroll-position | contents productions since we don't use them, but it's not a big deal anyway.
There was a problem hiding this comment.
Let me try to use derive(ToCss) for it! Thanks!
I'd remove the scroll-position | contents productions since we don't use them
Got it. I add them after reading the spec but I think it might be better to remove them due to not using anymore.
| input: &mut Parser<'i, 't> | ||
| ) -> Result<WillChange, ParseError<'i>> { | ||
| if input.try(|input| input.expect_ident_matching("auto")).is_ok() { | ||
| Ok(WillChange::Auto) |
There was a problem hiding this comment.
nit: I'd early-return here and deindent the rest, but your call.
| /// Expresses no particular intent | ||
| Auto, | ||
| /// scroll-position | contents | <custom-ident> | ||
| AnimateableFeatures(Vec<CustomIdent>), |
There was a problem hiding this comment.
You may want to also use Box<[CustomIdent]> to save some memory, but again, completely optional :)
There was a problem hiding this comment.
Let me try to use Box again!
6f5a078 to
f3cf265
Compare
|
@emilio Updated!
I don't have the permission to ask bors to run test 😂 |
|
@bors-servo r=emilio |
|
📌 Commit f3cf265 has been approved by |
style: Move will-change outside of mako This is a sub-PR of #19015 r? emilio --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #19582 - [x] These changes do not require tests <!-- 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/19583) <!-- Reviewable:end -->
| pub enum WillChange { | ||
| /// Expresses no particular intent | ||
| Auto, | ||
| #[css(comma, function, iterable)] |
There was a problem hiding this comment.
This shouldn't have function, otherwise it'd serialize as animatable-features(foo, bar) instead of just foo, bar.
|
@bors-servo r- Sorry, that needs to be addressed :) |
…ng as there's only one binding.
f3cf265 to
2eb3966
Compare
|
@bors-servo r+ I just did that since it's 5AM in Taipei, and there was a simple patch that was required to make it build. Manish reviewed that one-liner :) |
|
📌 Commit 2eb3966 has been approved by |
style: Move will-change outside of mako This is a sub-PR of #19015 r? emilio --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #19582 - [x] These changes do not require tests <!-- 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/19583) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-css |
|
@bors-servo retry
|
style: Move will-change outside of mako This is a sub-PR of #19015 r? emilio --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #19582 - [x] These changes do not require tests <!-- 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/19583) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
|
@emilio Thanks for the patch! Sorry for that I didn't notice how exactly |
This is a sub-PR of #19015
r? emilio
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is