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 - gecko glue code for font-size-adjust. #14227
Conversation
highfive
commented
Nov 15, 2016
highfive
commented
Nov 15, 2016
|
Though this is part of the Stylo work, it seems to me that there's no gecko change needed. So, I didn't file a bug on Bugzilla. Please let me know if I should do it. cc @Manishearth @heycam |
| self.gecko.mFont.sizeAdjust = other.gecko.mFont.sizeAdjust; | ||
| } | ||
|
|
||
| pub fn clone_font_size_adjust(&self) -> longhands::font_size_adjust::computed_value::T { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
chenpighead
Nov 15, 2016
•
Author
Contributor
If I remove Clone, an error occurs while building stylo:
0:33.04 error: no method named `clone_font_size_adjust` found for type `&gecko_properties::GeckoFont` in the current scope
0:33.04 --> /Users/jeremy/stylo/obj-x86_64-apple-darwin16.1.0/toolkit/library/gtest/rust/./x86_64-apple-darwin/debug/build/style-c9cd1e6c6606a30e/out/properties.rs:42421:50
0:33.04 |
0:33.04 42421 | old_style.get_font().clone_font_size_adjust(),
0:33.04 | ^^^^^^^^^^^^^^^^^^^^^^
0:33.04
Not sure if I should remove the Clone and try to fix this error somewhere else....
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Manishearth
Nov 15, 2016
Member
clone_ isn't related to Clone, it's usually used for animation. From Servo's POV the style structs store servo computed values, so "cloning" one out in stylo is a more complex operation than a regular clone.
| use properties::longhands::font_size_adjust::computed_value::T; | ||
| use values::specified::Number; | ||
|
|
||
| T::Number(Number(self.gecko.mFont.sizeAdjust)) |
This comment has been minimized.
This comment has been minimized.
wafflespeanut
Nov 15, 2016
•
Member
In that case, shouldn't we be checking whether we get a -1.0 here?
This comment has been minimized.
This comment has been minimized.
d66ebac
to
32bf5ab
|
@bors-servo r+ thanks! |
|
|
|
Stylo try w/ this patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f5aeb62873c69a241806cab6c9e6782d769009f5 Stylo try w/o this patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9ceeadd2a818d663e29d5d20de5ea3046fcbae11 Looks like the failures are not related to this patch. |
|
(yeah, usually a screenshot is preferred) |
|
Thank you for the pointers. Is there anything else that I can do to make this PR be merged? |
|
This PR is on its way to getting merged. Please wait till the build succeeds |
Stylo - gecko glue code for font-size-adjust. <!-- Please describe your changes on the following line: --> Implement the gecko-side glue code for font-size-adjust. This is a followup for #14125, which is originally filed in #13875. --- <!-- 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 _____ <!-- 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/14227) <!-- Reviewable:end -->
|
|
|
@bors-servo retry #11100 |
Stylo - gecko glue code for font-size-adjust. <!-- Please describe your changes on the following line: --> Implement the gecko-side glue code for font-size-adjust. This is a followup for #14125, which is originally filed in #13875. --- <!-- 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 _____ <!-- 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/14227) <!-- Reviewable:end -->
|
|
|
|
|
@bors-servo retry #14267 |
Stylo - gecko glue code for font-size-adjust. <!-- Please describe your changes on the following line: --> Implement the gecko-side glue code for font-size-adjust. This is a followup for #14125, which is originally filed in #13875. --- <!-- 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 _____ <!-- 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/14227) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
|
@bors-servo retry |
Stylo - gecko glue code for font-size-adjust. <!-- Please describe your changes on the following line: --> Implement the gecko-side glue code for font-size-adjust. This is a followup for #14125, which is originally filed in #13875. --- <!-- 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 _____ <!-- 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/14227) <!-- Reviewable:end -->
|
|
|
@bors-servo retry I hate #11100 |
|
|
|
|
|
YESSSSSSS!!!! FINALLY! |

chenpighead commentedNov 15, 2016
•
edited
Implement the gecko-side glue code for font-size-adjust.
This is a followup for #14125, which is originally filed in #13875.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is