Skip to content
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

Support letter-spacing in stylo #13473

Merged
merged 1 commit into from Sep 30, 2016
Merged

Conversation

@KiChjang
Copy link
Member

KiChjang commented Sep 28, 2016

Fixes #12823.

r? @Manishearth

This needs to be tested!


This change is Reviewable

@highfive
Copy link

highfive commented Sep 28, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/longhand/inherited_text.mako.rs, components/style/properties/gecko.mako.rs
@highfive
Copy link

highfive commented Sep 28, 2016

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@@ -1523,6 +1523,12 @@ fn static_assert() {

<%call expr="impl_coord_copy('line_height', 'mLineHeight')"></%call>

pub fn set_letter_spacing(&mut self, v: longhands::letter_spacing::computed_value::T) {
self.gecko.mLetterSpacing.set_value(CoordDataValue::Coord(v.0.map(|au| au.0).unwrap_or(0)));

This comment has been minimized.

@Manishearth

Manishearth Sep 28, 2016

Member

the None case maps to Normal

@KiChjang KiChjang force-pushed the KiChjang:gecko-letter-spacing branch from 53542f5 to bce6f7d Sep 28, 2016
@wafflespeanut
Copy link
Member

wafflespeanut commented Sep 29, 2016

This works.

screenshot

@bors-servo r=Manishearth,Wafflespeanut

@bors-servo
Copy link
Contributor

bors-servo commented Sep 29, 2016

📌 Commit bce6f7d has been approved by Manishearth,Wafflespeanut

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2016

Testing commit bce6f7d with merge f67e5e4...

bors-servo added a commit that referenced this pull request Sep 30, 2016
…afflespeanut

Support letter-spacing in stylo

Fixes #12823.

r? @Manishearth

**This needs to be tested!**

<!-- 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/13473)
<!-- Reviewable:end -->
@bors-servo bors-servo mentioned this pull request Sep 30, 2016
3 of 3 tasks complete
@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2016

@bors-servo bors-servo merged commit bce6f7d into servo:master Sep 30, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@KiChjang KiChjang deleted the KiChjang:gecko-letter-spacing branch Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.