mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
commit
bc448f158b
1 changed files with 0 additions and 11 deletions
|
@ -5268,17 +5268,6 @@ pub trait ${castTraitName} : Sized {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
#[allow(unrooted_must_root)]
|
||||
fn to_js<T: ${toBound}+Reflectable>(base: &JS<T>) -> Option<JS<Self>> {
|
||||
unsafe {
|
||||
match (*base.unsafe_get()).${checkFn}() {
|
||||
true => Some(base.transmute_copy()),
|
||||
false => None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
#[allow(unrooted_must_root)]
|
||||
fn to_layout_js<T: ${toBound}+Reflectable>(base: &LayoutJS<T>) -> Option<LayoutJS<Self>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue