Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcolor: Add a way to hook into the parsing of the components of the color functions. #207
Conversation
|
r? @SimonSapin |
|
Do you have a Servo patch yet that uses this API? (To make sure it is sufficient, e.g. in r+ with changes if so Reviewed 2 of 2 files at r1. src/color.rs, line 151 at r1 (raw file):
Please use src/color.rs, line 155 at r1 (raw file):
Please rename this to Comments from Reviewable |
…lor functions. This way we'll be able to implement calc-in-color without duplicating a ton of code for calc() handling in Servo. Minor version bump because the API is not broken, just expanded to support providing an optional `ColorComponentParser`.
|
Can you take another look? Had to add a couple things for servo. |
|
@bors-servo r+ Reviewed 2 of 2 files at r2. Comments from Reviewable |
|
|
color: Add a way to hook into the parsing of the components of the color functions. This way we'll be able to implement calc-in-color without duplicating a ton of code for calc() handling in Servo. Minor version bump because the API is not broken, just expanded to support providing an optional `ColorComponentParser`. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/207) <!-- Reviewable:end -->
|
|
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. <!-- 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/19457) <!-- Reviewable:end -->
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. <!-- 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/19457) <!-- Reviewable:end -->
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 <!-- 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/19457) <!-- Reviewable:end -->
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 <!-- 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/19457) <!-- Reviewable:end -->
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 5e87eadeda400ec41303d8d2aa506bf65fd86ea4
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc UltraBlame original commit: 43e678a70a2a7175b59ebd5e84ab6e071ec9e009
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc UltraBlame original commit: 43e678a70a2a7175b59ebd5e84ab6e071ec9e009
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc UltraBlame original commit: 43e678a70a2a7175b59ebd5e84ab6e071ec9e009
emilio commentedDec 1, 2017
•
edited by larsbergstrom
This way we'll be able to implement calc-in-color without duplicating a ton of
code for calc() handling in Servo.
Minor version bump because the API is not broken, just expanded to support
providing an optional
ColorComponentParser.This change is