mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove HasBoxFFI
HasBoxFFI and HasArcFFI aren't great, see bug 1831242 as for examples of why. HasArcFFI requires a bit more care, but HasBoxFFI doesn't give us much benefit. Instead use the same type in the FFI boundary. Differential Revision: https://phabricator.services.mozilla.com/D177252
This commit is contained in:
parent
1a49d8c79f
commit
19e037d921
9 changed files with 10 additions and 180 deletions
|
@ -4,8 +4,6 @@
|
|||
|
||||
//! Various stuff for CSS property use counters.
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
use crate::gecko_bindings::sugar::ownership::{HasBoxFFI, HasFFI, HasSimpleFFI};
|
||||
use crate::properties::{CountedUnknownProperty, COUNTED_UNKNOWN_PROPERTY_COUNT};
|
||||
use crate::properties::{NonCustomPropertyId, NON_CUSTOM_PROPERTY_ID_COUNT};
|
||||
use std::cell::Cell;
|
||||
|
@ -96,14 +94,3 @@ impl UseCounters {
|
|||
.merge(&other.counted_unknown_properties);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
unsafe impl HasFFI for UseCounters {
|
||||
type FFIType = crate::gecko_bindings::structs::StyleUseCounters;
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
unsafe impl HasSimpleFFI for UseCounters {}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
unsafe impl HasBoxFFI for UseCounters {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue