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 up13894 Use graphenes in text-emphasis-style #13914
Conversation
highfive
commented
Oct 25, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @metajack (or someone else) soon. |
highfive
commented
Oct 25, 2016
highfive
commented
Oct 25, 2016
|
Looks good to me, but I have a question. |
| @@ -87,6 +87,8 @@ extern crate smallvec; | |||
| #[macro_use] | |||
| extern crate style_traits; | |||
| extern crate time; | |||
| #[allow(unused_extern_crates)] | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
canova
Oct 25, 2016
Member
Probably it's because text-emphasis-style is stylo only property. And it generates error during ./mach build -d
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
canova
Oct 25, 2016
Member
Oops, ./mach test-unit generates error this time(It couldn't find unicode_segmentation crate). Maybe we need to set gecko flag in test-unit.
|
@emilio I think we can merge this pr like this and we can deal with test-unit later. What do you think? |
|
Sounds good. Could you file an issue for that? @bors-servo: r+ |
|
|
13894 Use graphenes in text-emphasis-style <!-- Please describe your changes on the following line: --> Use `unicode_segmentation` crate to truncate strings on grapheme boundaries. --- <!-- 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 - [x] These changes fix #13894 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- 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/13914) <!-- Reviewable:end -->
|
Sure! |
|
|
|
You need to run |
|
Can you squash your commits please? |
Add test with multi-character grapheme Run cargo update
d65b285
to
06db231
|
@bors-servo r+ Awesome, thanks! |
|
|
13894 Use graphenes in text-emphasis-style <!-- Please describe your changes on the following line: --> Use `unicode_segmentation` crate to truncate strings on grapheme boundaries. --- <!-- 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 - [x] These changes fix #13894 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- 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/13914) <!-- Reviewable:end -->
|
|
TooManyBees commentedOct 25, 2016
•
edited
Use
unicode_segmentationcrate to truncate strings on grapheme boundaries../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is