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 upStylo: add -moz-border-*-colors support #16586
Conversation
highfive
commented
Apr 24, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Apr 24, 2017
|
r? @heycam |
|
@bors-servo delegate+ |
|
|
|
@bors-servo try |
…=<try> Stylo: add -moz-border-*-colors support In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. We can simplify the implementation of computed value in Servo by using Option<Vec>. As to passing computed values from Servo to Gecko, we might need to use some binding functions (pre-added in the same Gecko bug, see Bug 1348173). Note that we also added -moz-border-*-colors as sub_properties of the 'border' shorthand, so we can make the 'border' shorthand reset -moz-border-*-colors (See Gecko Bug 482692). A bit refactoring of replacing all ["top", "right", "bottom", "left"] with PHYSICAL_SIDES is included in this patch, since we've already had PHYSICAL_SIDES for a while. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/16586) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
dd9fdee
to
43a15c0
|
@bors-servo try |
…=<try> Stylo: add -moz-border-*-colors support In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. We can simplify the implementation of computed value in Servo by using Option<Vec>. As to passing computed values from Servo to Gecko, we might need to use some binding functions (pre-added in the same Gecko bug, see Bug 1348173). Note that we also added -moz-border-*-colors as sub_properties of the 'border' shorthand, so we can make the 'border' shorthand reset -moz-border-*-colors (See Gecko Bug 482692). A bit refactoring of replacing all ["top", "right", "bottom", "left"] with PHYSICAL_SIDES is included in this patch, since we've already had PHYSICAL_SIDES for a while. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/16586) <!-- Reviewable:end -->
|
|
|
Needs a bindings.rs update. I'll grab them as an artifact from the try push... still wait for a green stylo try. |
43a15c0
to
98d949e
|
|
…=heycam Stylo: add -moz-border-*-colors support In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. We can simplify the implementation of computed value in Servo by using Option<Vec>. As to passing computed values from Servo to Gecko, we might need to use some binding functions (pre-added in the same Gecko bug, see Bug 1348173). Note that we also added -moz-border-*-colors as sub_properties of the 'border' shorthand, so we can make the 'border' shorthand reset -moz-border-*-colors (See Gecko Bug 482692). A bit refactoring of replacing all ["top", "right", "bottom", "left"] with PHYSICAL_SIDES is included in this patch, since we've already had PHYSICAL_SIDES for a while. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/16586) <!-- Reviewable:end -->
|
|
In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. We can simplify the implementation of computed value in Servo by using Option<Vec>. As to passing computed values from Servo to Gecko, we might need to use some binding functions (pre-added in the same Gecko bug, see Bug 1348173). Note that we added -moz-border-*-colors as sub_properties of the 'border' shorthand, so we can make the 'border' shorthand reset -moz-border-*-colors (See Gecko Bug 482692). However, since they are Gecko only non-standard properties, we should skip these sub_properties while doing unit testing in Servo. The test part should be convered by Stylo/Gecko already. A bit refactoring of replacing all ["top", "right", "bottom", "left"] with PHYSICAL_SIDES is included in this patch, since we've already had PHYSICAL_SIDES for a while.
d84ca07
to
13f6cf6
|
@bors-servo r=heycam |
|
|
…=heycam Stylo: add -moz-border-*-colors support In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. We can simplify the implementation of computed value in Servo by using Option<Vec>. As to passing computed values from Servo to Gecko, we might need to use some binding functions (pre-added in the same Gecko bug, see Bug 1348173). Note that we also added -moz-border-*-colors as sub_properties of the 'border' shorthand, so we can make the 'border' shorthand reset -moz-border-*-colors (See Gecko Bug 482692). A bit refactoring of replacing all ["top", "right", "bottom", "left"] with PHYSICAL_SIDES is included in this patch, since we've already had PHYSICAL_SIDES for a while. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/16586) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
…rs support. r=heycam 1. add binding functions for -moz-border-*-colors support. In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. The computed values of -moz-border-*-colors are set by couple member functions. To pass the computed value from Servo to Gecko, we need support for these member functions as well. So, I'm adding some binding functions in this patch. The actual use of these bindings to pass/store the computed values is separated in the following patch, which should be a pure Servo change. See servo PR: servo/servo#16586. 2. update test expectations for -moz-border-*-colors support. Note that with the support of -moz-border-*-colors, 165 mochitests and 17 reftests could be fixed. MozReview-Commit-ID: KDbp8C6Aoqd --HG-- extra : rebase_source : 7d9675d9ece091ea6957dcae7d28c39066e69035
…rs support. r=heycam 1. add binding functions for -moz-border-*-colors support. In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. The computed values of -moz-border-*-colors are set by couple member functions. To pass the computed value from Servo to Gecko, we need support for these member functions as well. So, I'm adding some binding functions in this patch. The actual use of these bindings to pass/store the computed values is separated in the following patch, which should be a pure Servo change. See servo PR: servo/servo#16586. 2. update test expectations for -moz-border-*-colors support. Note that with the support of -moz-border-*-colors, 165 mochitests and 17 reftests could be fixed. MozReview-Commit-ID: KDbp8C6Aoqd UltraBlame original commit: 9c7c061b959fd3d6dc8f468aedaac0736ca7480c
…rs support. r=heycam 1. add binding functions for -moz-border-*-colors support. In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. The computed values of -moz-border-*-colors are set by couple member functions. To pass the computed value from Servo to Gecko, we need support for these member functions as well. So, I'm adding some binding functions in this patch. The actual use of these bindings to pass/store the computed values is separated in the following patch, which should be a pure Servo change. See servo PR: servo/servo#16586. 2. update test expectations for -moz-border-*-colors support. Note that with the support of -moz-border-*-colors, 165 mochitests and 17 reftests could be fixed. MozReview-Commit-ID: KDbp8C6Aoqd UltraBlame original commit: 9c7c061b959fd3d6dc8f468aedaac0736ca7480c
…rs support. r=heycam 1. add binding functions for -moz-border-*-colors support. In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors. The computed values of -moz-border-*-colors are set by couple member functions. To pass the computed value from Servo to Gecko, we need support for these member functions as well. So, I'm adding some binding functions in this patch. The actual use of these bindings to pass/store the computed values is separated in the following patch, which should be a pure Servo change. See servo PR: servo/servo#16586. 2. update test expectations for -moz-border-*-colors support. Note that with the support of -moz-border-*-colors, 165 mochitests and 17 reftests could be fixed. MozReview-Commit-ID: KDbp8C6Aoqd UltraBlame original commit: 9c7c061b959fd3d6dc8f468aedaac0736ca7480c
chenpighead commentedApr 24, 2017
•
edited by larsbergstrom
In Gecko, we use double pointers to nsBorderColors to store -moz-border-*-colors.
We can simplify the implementation of computed value in Servo by using Option.
As to passing computed values from Servo to Gecko, we might need to use some
binding functions (pre-added in the same Gecko bug, see Bug 1348173).
Note that we also added -moz-border--colors as sub_properties of the 'border'
shorthand, so we can make the 'border' shorthand reset -moz-border--colors
(See Gecko Bug 482692).
A bit refactoring of replacing all ["top", "right", "bottom", "left"] with PHYSICAL_SIDES
is included in this patch, since we've already had PHYSICAL_SIDES for a while.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is