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
Stylo - gecko glue code for font-size-adjust. #14227
Conversation
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need Clone
if it's a Copy
type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh never mind. It was a misunderstanding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, shouldn't we be checking whether we get a -1.0
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should. Fixed in the next version.
d66ebac
to
32bf5ab
Compare
@bors-servo r+ thanks! |
📌 Commit 32bf5ab has been approved by |
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 -->
💔 Test failed - mac-rel-wpt1 |
@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 -->
💔 Test failed - mac-rel-wpt1 |
💔 Test failed - linux-rel-wpt |
@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 -->
💔 Test failed - mac-rel-wpt1 |
⚡ Previous build results for arm32, arm64, linux-dev, linux-rel-wpt, mac-dev-unit, mac-rel-wpt2, windows-dev are reusable. Rebuilding only linux-rel-css, mac-rel-css, mac-rel-wpt1... |
💔 Test failed - linux-rel-css |
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 -->
💔 Test failed - mac-rel-wpt1 |
@bors-servo retry I hate #11100 😒 |
⚡ Previous build results for arm32, arm64, linux-dev, linux-rel-css, mac-dev-unit, mac-rel-css, mac-rel-wpt2, windows-dev are reusable. Rebuilding only linux-rel-wpt, mac-rel-wpt1... |
☀️ Test successful - arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-dev |
YESSSSSSS!!!! FINALLY! |
Implement the gecko-side glue code for font-size-adjust.
This is a followup for #14125, which is originally filed in #13875.
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is