Repository navigation
Derive more Parse implementations (fixes #19827) - #19903
Conversation
|
Heads up! This PR modifies the following files:
|
7063c6a to
75efdc4
Compare
| input: &mut Parser<'i, 't> | ||
| ) -> Result<OutlineStyle, ParseError<'i>> { | ||
| if let Ok(border_style) = input.try(|i| BorderStyle::parse(context, i)) { | ||
| if let Ok(border_style) = input.try(|i| BorderStyle::parse(i)) { |
There was a problem hiding this comment.
nit: input.try(BorderStyle::parse)?
75efdc4 to
f73ed3c
Compare
f73ed3c to
036415b
Compare
036415b to
23e1a79
Compare
|
☔ The latest upstream changes (presumably #19859) made this pull request unmergeable. Please resolve the merge conflicts. |
862d1ef to
19d5175
Compare
| self.copy_transition_property_from(other) | ||
| } | ||
|
|
||
| pub fn set_transform_style(&mut self, v: TransformStyle) { |
There was a problem hiding this comment.
Maybe note in a comment that this is done because of the preserve3d / preserve-3d stuff, which is why we can use one of our crappy macro helpers? Just so I don't waste time trying to rewrite it in the future :)
| ${helpers.predefined_type( | ||
| "transform-style", | ||
| "TransformStyle", | ||
| "computed::TransformStyle::" + ("Auto" if product == "servo" else "Flat"), |
| @@ -197,8 +197,12 @@ impl ToCss for KeyframesName { | |||
|
|
|||
| // A type for possible values for min- and max- flavors of width, | |||
| // height, block-size, and inline-size. | |||
There was a problem hiding this comment.
mind converting this to a doc comment while you're here?
| TableFooterGroup, TableRow, TableColumnGroup, | ||
| TableColumn, TableCell, TableCaption, ListItem, None, | ||
| #[parse(aliases = "-webkit-flex")] | ||
| #[css(aliases = "-webkit-flex")] |
19d5175 to
1fa88b8
Compare
|
@bors-servo r=emilio p=1 |
|
📌 Commit 1fa88b8 has been approved by |
Derive more Parse implementations (fixes #19827) Fixes #19827. <!-- 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/19903) <!-- 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 |
Fixes #19827.
This change is