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
style: paint-order serialization fixes. #18627
Conversation
MozReview-Commit-ID: 8hDAKZANOro Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
We share value representation, so there's no reason to do this in a more complex way. MozReview-Commit-ID: BITfCPqTkal Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This matches Gecko, and fixes the last reported case in bug 1397619. MozReview-Commit-ID: 4Z7GeaokKE1 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
Heads up! This PR modifies the following files:
|
r? @nox |
(self.0 >> pos * SHIFT) & MASK | ||
fn order_at(&self, pos: u8) -> PaintOrder { | ||
// Safe because PaintOrder covers all possible patterns. | ||
unsafe { ::std::mem::transmute((self.0 >> pos * SHIFT) & MASK) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just store a PaintOrder
in SpecifiedValue
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(There are three packed values, so it's not clear to me how could I do that)
Nice. @bors-servo r+ |
📌 Commit 638ba2c has been approved by |
style: paint-order serialization fixes. See each commit for details. <!-- 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/18627) <!-- 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 |
See each commit for details.
This change is