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 upSupport 'word-spacing' for geckolib #12795
Conversation
highfive
commented
Aug 10, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Aug 10, 2016
|
r? @Manishearth |
| Percentage(f) => self.gecko.mWordSpacing.set_value(CoordDataValue::Percent(f)), | ||
| Calc(l_p) => self.gecko.mWordSpacing.set_value(CoordDataValue::Calc(l_p.into())), | ||
| }, | ||
| None => self.gecko.mWordSpacing.set_value(CoordDataValue::Auto), |
This comment has been minimized.
This comment has been minimized.
Manishearth
Aug 10, 2016
Member
None should be zero I think. Or None. The spec says 0 but we might be able to get away with using None if gecko layout treats it as the same.
This comment has been minimized.
This comment has been minimized.
|
|
||
| match v.0 { | ||
| Some(lop) => match lop { | ||
| Length(au) => self.gecko.mWordSpacing.set_value(CoordDataValue::Integer(au.0)), |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9718dcb
to
69c422f
|
Comments make sense. I've made the changes :) |
|
@bors-servo r+ This works. |
|
|
Support 'word-spacing' for geckolib **These changes haven't been tested yet!** --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] There are tests for these changes <!-- 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/12795) <!-- Reviewable:end -->
|
|
|
@bors-servo retry
|
Support 'word-spacing' for geckolib **These changes haven't been tested yet!** --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] There are tests for these changes <!-- 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/12795) <!-- Reviewable:end -->
Support 'word-spacing' for geckolib **These changes haven't been tested yet!** --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] There are tests for these changes <!-- 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/12795) <!-- Reviewable:end -->
|
|
|
|
|
|
@bors-servo retry |
|
|
|
|
highfive
commented
Aug 11, 2016
|
|
@bors-servo retry |
|
|
|
|
|
|
highfive
commented
Aug 11, 2016
|
|
@bors-servo retry |
Support 'word-spacing' for geckolib **These changes haven't been tested yet!** --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] There are tests for these changes <!-- 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/12795) <!-- Reviewable:end -->
|
|
wafflespeanut commentedAug 10, 2016
•
edited by larsbergstrom
These changes haven't been tested yet!
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is