Skip to content

Move text-emphasis-position outside of mako - #20495

Merged
bors-servo merged 1 commit into
servo:masterfrom
LiHaoTan:move-text-emphasis-position
Apr 1, 2018
Merged

bors-servo merged 1 commit into
servo:masterfrom
LiHaoTan:move-text-emphasis-position

Conversation

@LiHaoTan

@LiHaoTan LiHaoTan commented Apr 1, 2018 •

Copy link
Copy Markdown
Contributor

Just as a sanity check I ran ./mach test-wpt tests/wpt/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht though I'm not sure if I'm correct since we are also building for geckolib. I guess the buildbot will make sure to run all the relevant tests anyway. I guess Travis and AppVeyor will run the web platform tests before the buildbot run all the tests later on.


This change is Reviewable

@highfive

highfive commented Apr 1, 2018

Copy link
Copy Markdown

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @emilio (or someone else) soon.

@highfive

highfive commented Apr 1, 2018

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/values/computed/mod.rs, components/style/values/specified/text.rs, components/style/properties/longhand/inherited_text.mako.rs, components/style/values/computed/text.rs, components/style/values/specified/mod.rs
  • @canaltinova: components/style/values/computed/mod.rs, components/style/values/specified/text.rs, components/style/properties/longhand/inherited_text.mako.rs, components/style/values/computed/text.rs, components/style/values/specified/mod.rs
  • @paulrouget: ports/servo/glutin_app/keyutils.rs, ports/servo/Cargo.toml, ports/servo/glutin_app/window.rs, ports/servo/main.rs, ports/servo/browser.rs and 1 more
  • @emilio: components/style/values/computed/mod.rs, components/style/values/specified/text.rs, components/style/properties/longhand/inherited_text.mako.rs, components/style/values/computed/text.rs, components/style/values/specified/mod.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 1, 2018
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Error syncing changes upstream. Logs saved in error-snapshot-1522554950674.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Error syncing changes upstream. Logs saved in error-snapshot-1522555399457.

@LiHaoTan
LiHaoTan force-pushed the move-text-emphasis-position branch 2 times, most recently from 41ab3b6 to 6cfd495 Compare April 1, 2018 03:49

@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! r=me with the nits addressed, thank you!

}

impl Parse for TextEmphasisPosition {
fn parse<'i, 't>(_context: &ParserContext, input: &mut Parser<'i, 't>)

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.

nit: indentation here looks weird, maybe:

fn parse<'i, 't>(
    _context: &ParserContext,
    input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>> {

/// Specified value of `text-emphasis-style` property.
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToComputedValue, ToCss)]
pub struct TextEmphasisPosition(
pub TextEmphasisHorizontalWritingModeValue, pub TextEmphasisVerticalWritingModeValue

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.

nit: I'd put each member in its own line here.

}
}


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.

nit: stray newline.

@LiHaoTan

LiHaoTan commented Apr 1, 2018

Copy link
Copy Markdown
Contributor Author

@bors-servo r=emilio

@bors-servo

Copy link
Copy Markdown
Contributor

@LiHaoTan: 🔑 Insufficient privileges: Not in reviewers

@emilio

emilio commented Apr 1, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

Thanks again!

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e151756 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 Apr 1, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e151756 with merge d81e65d...

bors-servo pushed a commit that referenced this pull request Apr 1, 2018
Move `text-emphasis-position` outside of mako

<!-- Please describe your changes on the following line: -->

---
<!-- 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` and `./mach build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fixes #19961

- [X] These changes do not require tests because this is refactoring.

~Just as a sanity check I ran `./mach test-wpt tests/wpt/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht` though I'm not sure if I'm correct since we are also building for `geckolib`. I guess the buildbot will make sure to run all the relevant tests anyway.~ I guess Travis and AppVeyor will run the web platform tests before the buildbot run all the tests later on.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/20495)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Apr 1, 2018
@LiHaoTan

LiHaoTan commented Apr 1, 2018

Copy link
Copy Markdown
Contributor Author

@emilio sorry I realized I made some mistakes in the documentation, can you review again?

@emilio

emilio commented Apr 1, 2018

Copy link
Copy Markdown
Member

Sure, last commit looks good, mind squashing all into one? Thanks!

@LiHaoTan
LiHaoTan force-pushed the move-text-emphasis-position branch from c095166 to 8d5a2a9 Compare April 1, 2018 13:12
@LiHaoTan

LiHaoTan commented Apr 1, 2018

Copy link
Copy Markdown
Contributor Author

Done, sorry about that.

@emilio

emilio commented Apr 1, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8d5a2a9 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 Apr 1, 2018
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8d5a2a9 with merge 9677d5c...

bors-servo pushed a commit that referenced this pull request Apr 1, 2018
Move `text-emphasis-position` outside of mako

<!-- Please describe your changes on the following line: -->

---
<!-- 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` and `./mach build-geckolib` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fixes #19961

- [X] These changes do not require tests because this is refactoring.

~Just as a sanity check I ran `./mach test-wpt tests/wpt/web-platform-tests/css/css-text-decor/text-emphasis-position-above-left-001.xht` though I'm not sure if I'm correct since we are also building for `geckolib`. I guess the buildbot will make sure to run all the relevant tests anyway.~ I guess Travis and AppVeyor will run the web platform tests before the buildbot run all the tests later on.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/20495)
<!-- 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 9677d5c to master...

@bors-servo
bors-servo merged commit 8d5a2a9 into servo:master Apr 1, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 1, 2018
@LiHaoTan
LiHaoTan deleted the move-text-emphasis-position branch April 3, 2018 16:47
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 text-emphasis-position outside of mako

5 participants