Skip to content

Refactor color parser to use a generic as output #323

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 1 commit into from
Feb 6, 2023

Conversation

tiaanl
Copy link
Collaborator

@tiaanl tiaanl commented Feb 4, 2023

This refactor allows the color parser to construct new color values directly, in stead of constructing a predefined color value and then forcing lib users to convert that type into whichever format they want to use in the end.

Most common use case is that the color included in the lib, cssparser::Color, is good for serialization, but not well suited for doing calculations on.

This refactor allows the color parser to construct new color values
directly, in stead of constructing a predefined color value and then
forcing lib users to convert that type into whichever format they want
to use in the end.

Most common use case is that the color included in the lib,
cssparser::Color, is good for serialization, but not well suited for
doing calculations on.
@emilio
Copy link
Member

emilio commented Feb 6, 2023

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 5a345d6 has been approved by emilio

@bors-servo
Copy link
Contributor

⌛ Testing commit 5a345d6 with merge 0a85c09...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-github
Approved by: emilio
Pushing 0a85c09 to master...

1 similar comment
@bors-servo
Copy link
Contributor

☀️ Test successful - checks-github
Approved by: emilio
Pushing 0a85c09 to master...

@bors-servo bors-servo merged commit 0a85c09 into servo:master Feb 6, 2023
@tiaanl tiaanl deleted the abstract-parse branch February 26, 2023 09:28
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.

3 participants