mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
style: Remove HasFFI as well
After the previous patches we only have one trait which we should also tweak / rework, so let's put it all on that single trait. Differential Revision: https://phabricator.services.mozilla.com/D177515
This commit is contained in:
parent
42cbb9d3cf
commit
e18675401e
2 changed files with 13 additions and 24 deletions
|
@ -17,7 +17,7 @@ use crate::gecko_bindings::structs::{
|
|||
RawServoMozDocumentRule, RawServoNamespaceRule, RawServoPageRule, RawServoStyleRule,
|
||||
RawServoStyleSheetContents, RawServoSupportsRule, ServoCssRules,
|
||||
};
|
||||
use crate::gecko_bindings::sugar::ownership::{HasArcFFI, HasFFI, Strong};
|
||||
use crate::gecko_bindings::sugar::ownership::{HasArcFFI, Strong};
|
||||
use crate::media_queries::MediaList;
|
||||
use crate::properties::animated_properties::AnimationValue;
|
||||
use crate::properties::{ComputedValues, PropertyDeclarationBlock};
|
||||
|
@ -33,10 +33,9 @@ use std::{mem, ptr};
|
|||
|
||||
macro_rules! impl_arc_ffi {
|
||||
($servo_type:ty => $gecko_type:ty[$addref:ident, $release:ident]) => {
|
||||
unsafe impl HasFFI for $servo_type {
|
||||
unsafe impl HasArcFFI for $servo_type {
|
||||
type FFIType = $gecko_type;
|
||||
}
|
||||
unsafe impl HasArcFFI for $servo_type {}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn $addref(obj: &$gecko_type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue