Skip to content

style: Move font-variant-numeric outside of mako - #19277

Merged
bors-servo merged 1 commit into
servo:masterfrom
CYBAI:font-variant-numeric-out-of-mako
Nov 18, 2017
Merged

bors-servo merged 1 commit into
servo:masterfrom
CYBAI:font-variant-numeric-out-of-mako

Conversation

@CYBAI

@CYBAI CYBAI commented Nov 18, 2017 •

Copy link
Copy Markdown
Member

This is a sub-PR of #19015
r? emilio



This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/values/specified/font.rs, components/style/values/specified/mod.rs, components/style/values/computed/mod.rs, components/style/values/computed/font.rs, components/style/properties/longhand/font.mako.rs and 1 more
  • @canaltinova: components/style/values/specified/font.rs, components/style/values/specified/mod.rs, components/style/values/computed/mod.rs, components/style/values/computed/font.rs, components/style/properties/longhand/font.mako.rs and 1 more
  • @emilio: components/style/values/specified/font.rs, components/style/values/specified/mod.rs, components/style/values/computed/mod.rs, components/style/values/computed/font.rs, components/style/properties/longhand/font.mako.rs and 1 more

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 18, 2017
}

#[cfg(feature = "gecko")]
impl_gecko_keyword_conversions!(VariantNumeric, u8);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emilio Previously, in the PRs of font-variant-east-asian and font-variant-ligatures, I copied the content of impl_gecko_keyword_conversions macro. However, they will be looked like very duplicate codes.
Thus, if using macro is better, I'd like to send another PR to implement this macro for font-variant-east-asian and font-variant-ligatures.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, that sounds great!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks; I'll send a PR for it!

@emilio emilio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, you're on a roll @CYBAI \o/

Thanks so much, this looks great!

}

#[cfg(feature = "gecko")]
impl_gecko_keyword_conversions!(VariantNumeric, u8);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, that sounds great!

@emilio

emilio commented Nov 18, 2017

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit a38de8b has been approved by emilio

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 18, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit a38de8b with merge 011e52f...

bors-servo pushed a commit that referenced this pull request Nov 18, 2017
style: Move font-variant-numeric 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 #19276
- [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/19277)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
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
Approved by: emilio
Pushing 011e52f to master...

@bors-servo
bors-servo merged commit a38de8b into servo:master Nov 18, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 18, 2017
@CYBAI
CYBAI deleted the font-variant-numeric-out-of-mako branch November 19, 2017 02:43
@CYBAI CYBAI mentioned this pull request Nov 19, 2017
4 tasks done
bors-servo pushed a commit that referenced this pull request Nov 19, 2017
Use macro to impl From for font variant

As I discussed in #19277, I'd like to change the implementation for `From` of font variant to use macro, `impl_gecko_keyword_conversions`.
r? @emilio

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes update `From` impl for font variant to use macro `impl_gecko_keyword_conversions`.
- [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/19282)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this pull request Nov 19, 2017
Use macro to impl From for font variant

As I discussed in #19277, I'd like to change the implementation for `From` of font variant to use macro, `impl_gecko_keyword_conversions`.
r? @emilio

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes update `From` impl for font variant to use macro `impl_gecko_keyword_conversions`.
- [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/19282)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this pull request Nov 20, 2017
Use macro to impl From for font variant

As I discussed in #19277, I'd like to change the implementation for `From` of font variant to use macro, `impl_gecko_keyword_conversions`.
r? @emilio

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes update `From` impl for font variant to use macro `impl_gecko_keyword_conversions`.
- [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/19282)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move font-variant-numeric outside of mako.

4 participants