mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
style: Use a more similar representation in Rust and C++ for grid lines.
Option<> is not FFI-safe, so if we want to use the same representation everywhere we need to get rid of it. This also makes it take the same amount of memory as the C++ representation, and it's not very complex, I'd think. Differential Revision: https://phabricator.services.mozilla.com/D35195
This commit is contained in:
parent
323221051f
commit
98091243a7
6 changed files with 58 additions and 60 deletions
|
@ -62,10 +62,7 @@ impl Animate for TrackSize {
|
|||
}
|
||||
}
|
||||
|
||||
impl Animate for generics::TrackRepeat<LengthPercentage, Integer>
|
||||
where
|
||||
generics::RepeatCount<Integer>: PartialEq,
|
||||
{
|
||||
impl Animate for generics::TrackRepeat<LengthPercentage, Integer> {
|
||||
fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()> {
|
||||
// If the keyword, auto-fit/fill, is the same it can result in different
|
||||
// number of tracks. For both auto-fit/fill, the number of columns isn't
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue