Skip to content

style: Move font-variant-ligatures outside of mako - #19253

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

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

Conversation

@CYBAI

@CYBAI CYBAI commented Nov 16, 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: ports/geckolib/glue.rs, components/style/values/specified/font.rs, components/style/values/specified/mod.rs, components/style/values/computed/mod.rs, components/style/values/computed/font.rs and 2 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/helpers.mako.rs and 1 more
  • @emilio: ports/geckolib/glue.rs, components/style/values/specified/font.rs, components/style/values/specified/mod.rs, components/style/values/computed/mod.rs, components/style/values/computed/font.rs and 2 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 16, 2017
#[inline] pub fn get_initial_specified_value() -> SpecifiedValue { ${initial_specified_value} }
% endif
% if none_specified_value:
#[inline] pub fn get_none_specified_value() -> SpecifiedValue { ${none_specified_value} }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks like it's only specific to the font-variant-ligatures property. Can we make it so that callers of get_none_specified_value() calls specified::FontVariantLigatures::none() directly?

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.

Yeah, indeed. Let's change the callers of this to be:

FontVariantLigatures::none()

And revert the changes to this file.

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.

@KiChjang @emilio Thanks for suggestion. I'll try to use specified::FontVariantLigatures::none() directly from the caller! It looks better for me!

@CYBAI
CYBAI force-pushed the font-variant-ligatures-out-of-mako branch from 5267d3f to 3ff497a Compare November 17, 2017 02:13

@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.

Looks great, as usual, thanks @CYBAI! (And sorry for the delay in getting this reviewed)

@emilio

emilio commented Nov 17, 2017

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 3ff497a 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 17, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 3ff497a with merge b4c274d...

bors-servo pushed a commit that referenced this pull request Nov 17, 2017
…ilio

style: Move font-variant-ligatures 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 #19246
- [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/19253)
<!-- 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 b4c274d to master...

@bors-servo
bors-servo merged commit 3ff497a into servo:master Nov 17, 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 17, 2017
@CYBAI
CYBAI deleted the font-variant-ligatures-out-of-mako branch November 18, 2017 03:03
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-ligatures outside of mako.

5 participants