Skip to content
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

Export `parse_color_keyword` for use in legacy HTML color parsing. #65

Merged
merged 1 commit into from Dec 8, 2014

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Dec 8, 2014

I could have gotten around the privacy restriction by synthesizing a
fake CSS AST and parsing that, but that would have been less efficient.

This won't merge because it's incompatible with the enum changes; I'll have to create a separate branch once the review is done.

r? @SimonSapin

@SimonSapin
Copy link
Member

SimonSapin commented Dec 8, 2014

I think that if you make this PR’s parent commit be the one Servo currently uses, you will be able to use it as-is in Servo. And if you add the pub use on a separate line, it won’t conflict with the enum changes.

r+ with these two changes.

@pcwalton pcwalton force-pushed the pcwalton:export-color branch from 8646e3c to c63bf90 Dec 8, 2014
@SimonSapin
Copy link
Member

SimonSapin commented Dec 8, 2014

This is so we don’t need a branch that we’d have to maintain as long as we want git bisect to work.

I could have gotten around the privacy restriction by synthesizing a
fake CSS AST and parsing that, but that would have been less efficient.
@pcwalton pcwalton force-pushed the pcwalton:export-color branch from c63bf90 to 3f98f13 Dec 8, 2014
pcwalton added a commit that referenced this pull request Dec 8, 2014
Export `parse_color_keyword` for use in legacy HTML color parsing.
@pcwalton pcwalton merged commit 97d8c3b into servo:master Dec 8, 2014
1 check was pending
1 check was pending
continuous-integration/travis-ci The Travis CI build is in progress
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.