Skip to content

Modernize the ToCss trait and implement it on more things. #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 29, 2014

Conversation

SimonSapin
Copy link
Member

It is now based on the TextWriter trait: https://github.com/SimonSapin/rust-std-candidates#the-textwriter-trait

It should be used for CSS serialization instead of Show.

@SimonSapin
Copy link
Member Author

The branch starts from an older commit that compiles with Servo’s version of Rust. servo/servo#4455 updates to just before the merge commit.

r? @jdm

@jdm
Copy link
Member

jdm commented Dec 29, 2014

I read the end result, and it makes sense to me. Do we care about newlines or spaces between declarations or anything like that?

@SimonSapin
Copy link
Member Author

Do we care about newlines or spaces between declarations or anything like that?

Not really. I’ve implemented ToCss on ast::Declaration and the like because I could, but they’re only intermediate values in parsing, not what we keep around in Servo. And they’re going away in my in-progress rewrite: https://github.com/servo/rust-cssparser/tree/incremental

@jdm
Copy link
Member

jdm commented Dec 29, 2014

Ok, feel free to merge this whenever you'd like.

@SimonSapin
Copy link
Member Author

I’ll do so when servo/servo#4455 is ready to be merged as well.

SimonSapin added a commit that referenced this pull request Dec 29, 2014
Modernize the ToCss trait and implement it on more things.
@SimonSapin SimonSapin merged commit 759d0d9 into master Dec 29, 2014
@SimonSapin SimonSapin deleted the to_css-merged branch December 29, 2014 21:39
bors-servo pushed a commit to servo/servo that referenced this pull request Dec 29, 2014
bors-servo pushed a commit to servo/servo that referenced this pull request Dec 29, 2014
bors-servo pushed a commit to servo/servo that referenced this pull request Dec 29, 2014
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this pull request Jun 12, 2017
…serialization (from servo:to_css); r=jdm

See servo/rust-cssparser#67 and servo/servo#4440.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: b3059ee85b71b067e4b9e337faef53ae4a96c66d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 30, 2019
…serialization (from servo:to_css); r=jdm

See servo/rust-cssparser#67 and servo/servo#4440.

r? jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: b3059ee85b71b067e4b9e337faef53ae4a96c66d

UltraBlame original commit: 445d2613a14ce5e1b73ec572f59caa6683742838
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…serialization (from servo:to_css); r=jdm

See servo/rust-cssparser#67 and servo/servo#4440.

r? jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: b3059ee85b71b067e4b9e337faef53ae4a96c66d

UltraBlame original commit: 445d2613a14ce5e1b73ec572f59caa6683742838
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…serialization (from servo:to_css); r=jdm

See servo/rust-cssparser#67 and servo/servo#4440.

r? jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: b3059ee85b71b067e4b9e337faef53ae4a96c66d

UltraBlame original commit: 445d2613a14ce5e1b73ec572f59caa6683742838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants