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 upRefactor box longhands #14913
Refactor box longhands #14913
Conversation
highfive
commented
Jan 8, 2017
|
Heads up! This PR modifies the following files:
|
|
r? @Manishearth |
|
@bors-servo try |
Refactor box longhands <!-- Please describe your changes on the following line: --> Converted some longhands into `vector_longhand` to reduce some repeated codes. Also some of longhands with same `SpecifiedValue` and `computed_value::T` changed. Re-exported SpecifiedValue instead of computed_value::T. Normally a computed_value can't have a parse function. --- <!-- 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 <!-- Either: --> - [X] These changes do not require tests because they're not changing the behavior of the longhands. <!-- 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/14913) <!-- Reviewable:end -->
|
|
| use style::properties::longhands::transition_duration::SpecifiedValue as DurationContainer; | ||
| use style::properties::longhands::transition_property::SpecifiedValue as PropertyContainer; | ||
| use style::properties::longhands::transition_timing_function::SpecifiedValue as TimingContainer; | ||
| use style::properties::longhands::transition_timing_function::TransitionTimingFunction; | ||
| use style::properties::longhands::transition_timing_function::single_value::SpecifiedValue as TransitionTimingFunction; |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Manishearth
Jan 8, 2017
Member
I don't think you can. use style::properties::longhands::transition_timing_function and then transition_timing_function::whatever in the code might work better (replace all TTF imports if you're doing this)
|
I think empty vectors were allowed for many of these properties. You need to explicitly enable that with @bors-servo delegate+ |
|
|
|
I especially looked for |
|
@bors-servo r=Manishearth |
|
|
Refactor box longhands <!-- Please describe your changes on the following line: --> Converted some longhands into `vector_longhand` to reduce some repeated codes. Also some of longhands with same `SpecifiedValue` and `computed_value::T` changed. Re-exported SpecifiedValue instead of computed_value::T. Normally a computed_value can't have a parse function. --- <!-- 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 <!-- Either: --> - [X] These changes do not require tests because they're not changing the behavior of the longhands. <!-- 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/14913) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
canova commentedJan 8, 2017
•
edited by larsbergstrom
Converted some longhands into
vector_longhandto reduce some repeated codes.Also some of longhands with same
SpecifiedValueandcomputed_value::Tchanged. Re-exported SpecifiedValue instead of computed_value::T. Normally a computed_value can't have a parse function../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is