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
Reuse Rect<T> some more #17071
Reuse Rect<T> some more #17071
Conversation
It makes no sense to have named fields in some cases, notably to reuse Rect<T> in BorderRadius<T>.
BorderRadius now parses itself reusing Rect<T>.
Heads up! This PR modifies the following files:
|
☀️ 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 |
What's the rationale for converting |
Not all values that behave that way correspond to the four sides of a rectangle. For example as part of |
@bors-servo r+ Perhaps those should be newtypes... But not going to block on that. r=me |
📌 Commit 862fc4f has been approved by |
@bors-servo p=1 |
Reuse Rect<T> some more <!-- 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/17071) <!-- 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 |
This change is