-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Convert TrackList's values
field to store only TrackSize.
#17737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Heads up! This PR modifies the following files:
|
r? @wafflespeanut, @Manishearth |
LGTM, since this is just refactoring existing code. r=me after try build succeeds. |
@bors-servo r=Manishearth,wafflespeanut |
📌 Commit ade76f1 has been approved by |
…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 -->
☀️ 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 |
UltraBlame original commit: e84711b4665d4f9bd64c35db94f926ab8da60e8d
UltraBlame original commit: e84711b4665d4f9bd64c35db94f926ab8da60e8d
UltraBlame original commit: e84711b4665d4f9bd64c35db94f926ab8da60e8d
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 errorsThis change is