Repository navigation
style: Move font-size-adjust outside of mako - #19153
Conversation
|
Heads up! This PR modifies the following files:
|
emilio
left a comment
There was a problem hiding this comment.
Looks great! r=me with that nit.
| use style_traits::{ToCss, StyleParseErrorKind, ParseError}; | ||
| use values::computed::{font as computed, Context, Length, NonNegativeLength, ToComputedValue}; | ||
| use values::specified::{AllowQuirks, LengthOrPercentage, NoCalcLength}; | ||
| use values::specified::{AllowQuirks, LengthOrPercentage, NoCalcLength, Number as SpecifiedNumber}; |
There was a problem hiding this comment.
Why SpecifiedNumber? Let's just use Number, since this is the specified module.
There was a problem hiding this comment.
I originally think it will become Number(Number) in FontSizeAdjust enum if using Number but I think you're right.
Using SpecifiedNumber looks redundant.
I've updated it.
|
|
||
| impl ToAnimatedZero for FontSizeAdjust { | ||
| #[inline] | ||
| fn to_animated_zero(&self) -> Result<Self, ()> { |
There was a problem hiding this comment.
Can you add under this a line like:
// FIXME(emilio): why?
| products="gecko", | ||
| initial_value="computed::FontSizeAdjust::none()", | ||
| initial_specified_value="specified::FontSizeAdjust::none()", | ||
| animation_value_type="computed::FontSizeAdjust", |
There was a problem hiding this comment.
I think you can change this to animation_value_type="ComputedValue".
ce38e36 to
e73f237
Compare
|
@bors-servo r+ |
|
📌 Commit e73f237 has been approved by |
style: Move font-size-adjust outside of mako This is a sub-PR of #19015 r? emilio --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #19151 (github issue number if applicable). - [x] These changes do not require tests <!-- 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/19153) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
This is a sub-PR of #19015
r? emilio
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is