mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Compile raw inline event handlers lazily. Resolves #8489.
This commit is contained in:
parent
3703e6d4f6
commit
2796a4dfa8
11 changed files with 323 additions and 67 deletions
|
@ -255,6 +255,15 @@ impl<A: JSTraceable, B: JSTraceable> JSTraceable for (A, B) {
|
|||
}
|
||||
}
|
||||
|
||||
impl<A: JSTraceable, B: JSTraceable, C: JSTraceable> JSTraceable for (A, B, C) {
|
||||
#[inline]
|
||||
fn trace(&self, trc: *mut JSTracer) {
|
||||
let (ref a, ref b, ref c) = *self;
|
||||
a.trace(trc);
|
||||
b.trace(trc);
|
||||
c.trace(trc);
|
||||
}
|
||||
}
|
||||
|
||||
no_jsmanaged_fields!(bool, f32, f64, String, Url, AtomicBool, Uuid);
|
||||
no_jsmanaged_fields!(usize, u8, u16, u32, u64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue