mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #13663 - shubheksha:fix/13657, r=Manishearth
changed set_value() to set() in gecko.mako.rs <!-- Please describe your changes on the following line: --> Changed `set_value()` to `set()` in gecko.mako.rs --- <!-- 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 #13657 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because just the `set_value()` call was changed to `set()` <!-- 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/13663) <!-- Reviewable:end -->
This commit is contained in:
commit
b110eb394e
1 changed files with 2 additions and 6 deletions
|
@ -1612,7 +1612,7 @@ fn static_assert() {
|
|||
|
||||
pub fn set_letter_spacing(&mut self, v: longhands::letter_spacing::computed_value::T) {
|
||||
match v.0 {
|
||||
Some(au) => self.gecko.mLetterSpacing.set_value(CoordDataValue::Coord(au.0)),
|
||||
Some(au) => self.gecko.mLetterSpacing.set(au),
|
||||
None => self.gecko.mLetterSpacing.set_value(CoordDataValue::Normal)
|
||||
}
|
||||
}
|
||||
|
@ -1623,11 +1623,7 @@ fn static_assert() {
|
|||
use values::computed::LengthOrPercentage::*;
|
||||
|
||||
match v.0 {
|
||||
Some(lop) => match lop {
|
||||
Length(au) => self.gecko.mWordSpacing.set_value(CoordDataValue::Coord(au.0)),
|
||||
Percentage(f) => self.gecko.mWordSpacing.set_value(CoordDataValue::Percent(f)),
|
||||
Calc(l_p) => self.gecko.mWordSpacing.set_value(CoordDataValue::Calc(l_p.into())),
|
||||
},
|
||||
Some(lop) => self.gecko.mWordSpacing.set(lop),
|
||||
// https://drafts.csswg.org/css-text-3/#valdef-word-spacing-normal
|
||||
None => self.gecko.mWordSpacing.set_value(CoordDataValue::Coord(0)),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue