Use more generics and remove more code from mako files#17186
Merged
bors-servo merged 4 commits intomasterfrom Jun 6, 2017
Merged
Use more generics and remove more code from mako files#17186bors-servo merged 4 commits intomasterfrom
bors-servo merged 4 commits intomasterfrom
Conversation
|
Heads up! This PR modifies the following files:
|
Contributor
bors-servo
pushed a commit
that referenced
this pull request
Jun 6, 2017
Use more generics and remove more code from mako files
emilio
reviewed
Jun 6, 2017
| #[cfg_attr(feature = "servo", derive(HeapSizeOf))] | ||
| #[derive(Clone, Copy, Debug, HasViewportPercentage, PartialEq, ToComputedValue, ToCss)] | ||
| pub enum VerticalAlign<LengthOrPercentage> |
| /// A generic value for scroll snap points. | ||
| #[cfg_attr(feature = "servo", derive(HeapSizeOf))] | ||
| #[derive(Clone, Copy, Debug, HasViewportPercentage, PartialEq, ToComputedValue)] | ||
| pub enum ScrollSnapPoint<LengthOrPercentage> { |
Member
There was a problem hiding this comment.
This is in a gecko-only module, so no need for a cfg_attr(feature = "servo"...). Though any reason why compiling it for both hurts?
Contributor
|
💔 Test failed - windows-msvc-dev |
Member
|
a9cb635 to
25931f9
Compare
emilio
approved these changes
Jun 6, 2017
| return Ok(GenericScrollSnapPoint::None); | ||
| } | ||
| input.expect_function_matching("repeat")?; | ||
| let length = input.parse_nested_block(|i| |
25931f9 to
195e98e
Compare
Contributor
Author
|
@bors-servo r=emilio |
Contributor
|
📌 Commit 195e98e has been approved by |
Contributor
bors-servo
pushed a commit
that referenced
this pull request
Jun 6, 2017
Use more generics and remove more code from mako files <!-- 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/17186) <!-- Reviewable:end -->
Contributor
|
☀️ 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is