Skip to content

Conversation

canova
Copy link
Contributor

@canova canova commented Jul 14, 2017

It was storing both TrackSize and TrackRepeat before and TrackRepeat have to be
converted into sequence of TrackSize during serialization. Instead of doing this
in serialization process(which is hard and hacky), we converted to do this in
parsing process. We were doing this conversion in the ComputedValue conversion.
So we only had to move this process to parsing.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors

This change is Reviewable

It was storing both TrackSize and TrackRepeat before and TrackRepeat have to be
converted into sequence of TrackSize during serialization. Instead of doing this
in serialization process(which is hard and hacky), we converted to do this in
parsing process. We were doing this conversion in the ComputedValue conversion.
So we only had to move this process to parsing.
@highfive
Copy link

Heads up! This PR modifies the following files:

  • @bholley: components/style/values/generics/grid.rs, components/style/values/specified/grid.rs, components/style/values/specified/mod.rs, components/style/values/computed/mod.rs, components/style/properties/shorthand/position.mako.rs
  • @emilio: components/style/values/generics/grid.rs, components/style/values/specified/grid.rs, components/style/values/specified/mod.rs, components/style/values/computed/mod.rs, components/style/properties/shorthand/position.mako.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 14, 2017
@highfive
Copy link

warning Warning warning

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

@canova
Copy link
Contributor Author

canova commented Jul 14, 2017

r? @wafflespeanut, @Manishearth

@highfive highfive assigned ghost and unassigned cbrewster Jul 14, 2017
@ghost
Copy link

ghost commented Jul 14, 2017

LGTM, since this is just refactoring existing code. r=me after try build succeeds.

@canova
Copy link
Contributor Author

canova commented Jul 14, 2017

@bors-servo r=Manishearth,wafflespeanut

@bors-servo
Copy link
Contributor

📌 Commit ade76f1 has been approved by Manishearth,wafflespeanut

@highfive highfive assigned Manishearth and unassigned ghost Jul 14, 2017
@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 Jul 14, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit ade76f1 with merge 124a23b...

bors-servo pushed a commit that referenced this pull request Jul 14, 2017
…h,wafflespeanut

Convert TrackList's `values` field to store only TrackSize.

It was storing both TrackSize and TrackRepeat before and TrackRepeat have to be
converted into sequence of TrackSize during serialization. Instead of doing this
in serialization process(which is hard and hacky), we converted to do this in
parsing process. We were doing this conversion in the ComputedValue conversion.
So we only had to move this process to parsing.

---
<!-- 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

<!-- 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/17737)
<!-- Reviewable:end -->
@bors-servo
Copy link
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: Manishearth,wafflespeanut
Pushing 124a23b to master...

@bors-servo bors-servo merged commit ade76f1 into servo:master Jul 15, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 15, 2017
@canova canova deleted the same-grid-but-better branch July 15, 2017 00:54
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jul 15, 2017
weilonge pushed a commit to weilonge/gecko that referenced this pull request Jul 15, 2017
aethanyc pushed a commit to aethanyc/gecko-dev that referenced this pull request Jul 17, 2017
JerryShih pushed a commit to JerryShih/gecko-dev that referenced this pull request Jul 17, 2017
Manishearth pushed a commit to Manishearth/gecko-dev that referenced this pull request Jul 18, 2017
leobalter pushed a commit to leobalter/gecko-dev that referenced this pull request Jul 20, 2017
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
UltraBlame original commit: e84711b4665d4f9bd64c35db94f926ab8da60e8d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
UltraBlame original commit: e84711b4665d4f9bd64c35db94f926ab8da60e8d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
UltraBlame original commit: e84711b4665d4f9bd64c35db94f926ab8da60e8d
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
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.

5 participants