Repository navigation
Conversation
|
Heads up! This PR modifies the following files:
|
|
r? @emilio |
emilio
left a comment
There was a problem hiding this comment.
Looks great, as usual, thanks a lot @cbrewster!
A couple nits, mostly about making this slightly nicer, but all of them are pre-existing, so feel free to file issues instead :)
| } | ||
|
|
||
| let mut first = true; | ||
| for pair in &self.0 { |
There was a problem hiding this comment.
nit: This could read nicer, maybe with for &(ref first, ref second) in ..
Also I believe we have helpers to serialize this in a nicer way, and even derive(..) it? I think to recall SequenceWriter and css(comma).
Maybe converting the (String, String) into something like:
struct QuotePair {
first: String,
second: String,
}You could derive this if tuples don't work... But not sure if worth though.
|
|
||
| /// Specified and computed `quote` property | ||
| #[derive(Clone, Debug, MallocSizeOf, PartialEq, ToComputedValue)] | ||
| pub struct Quotes(pub Vec<(String, String)>); |
There was a problem hiding this comment.
These strings and this Vec should probably be box, to save space:
pub struct Quotes(pub Box<[(Box<str>, Box<str>)]>);Not sure if you feel like fixing it, but if not please file an issue :)
|
☔ The latest upstream changes (presumably #19548) made this pull request unmergeable. Please resolve the merge conflicts. |
|
I rebased this at #19556. Thanks! |
Move list quotes out of mako. Rebase of #19154. <!-- 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/19556) <!-- Reviewable:end -->
Move list quotes out of mako. Rebase of #19154. <!-- 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/19556) <!-- Reviewable:end -->
…s-mako); r=emilio Rebase of servo/servo#19154. Source-Repo: https://github.com/servo/servo Source-Revision: 26feea3be5bc70fed7a642ca768187d29469fee0 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 7e29dfb2e654d65b512942e77f2bb48c449df9b9
…s-mako); r=emilio Rebase of servo/servo#19154. Source-Repo: https://github.com/servo/servo Source-Revision: 26feea3be5bc70fed7a642ca768187d29469fee0
…s-mako); r=emilio Rebase of servo/servo#19154. Source-Repo: https://github.com/servo/servo Source-Revision: 26feea3be5bc70fed7a642ca768187d29469fee0 UltraBlame original commit: 1e60dbbef9973cccdaabfec0b40ee27be873a9da
…s-mako); r=emilio Rebase of servo/servo#19154. Source-Repo: https://github.com/servo/servo Source-Revision: 26feea3be5bc70fed7a642ca768187d29469fee0 UltraBlame original commit: 1e60dbbef9973cccdaabfec0b40ee27be873a9da
…s-mako); r=emilio Rebase of servo/servo#19154. Source-Repo: https://github.com/servo/servo Source-Revision: 26feea3be5bc70fed7a642ca768187d29469fee0 UltraBlame original commit: 1e60dbbef9973cccdaabfec0b40ee27be873a9da
…s-mako); r=emilio Rebase of servo/servo#19154. Source-Repo: https://github.com/servo/servo Source-Revision: 26feea3be5bc70fed7a642ca768187d29469fee0
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is