mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
order derivable traits lists
Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
This commit is contained in:
parent
ab73f3d61d
commit
c5fe235112
194 changed files with 553 additions and 552 deletions
|
@ -21,7 +21,7 @@ use std::mem;
|
|||
use std::rc::Rc;
|
||||
|
||||
/// A collection of microtasks in FIFO order.
|
||||
#[derive(JSTraceable, HeapSizeOf, Default)]
|
||||
#[derive(Default, HeapSizeOf, JSTraceable)]
|
||||
pub struct MicrotaskQueue {
|
||||
/// The list of enqueued microtasks that will be invoked at the next microtask checkpoint.
|
||||
microtask_queue: DOMRefCell<Vec<Microtask>>,
|
||||
|
@ -29,7 +29,7 @@ pub struct MicrotaskQueue {
|
|||
performing_a_microtask_checkpoint: Cell<bool>,
|
||||
}
|
||||
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
pub enum Microtask {
|
||||
Promise(EnqueuedPromiseCallback),
|
||||
MediaElement(MediaElementMicrotask),
|
||||
|
@ -43,7 +43,7 @@ pub trait MicrotaskRunnable {
|
|||
}
|
||||
|
||||
/// A promise callback scheduled to run during the next microtask checkpoint (#4283).
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
pub struct EnqueuedPromiseCallback {
|
||||
#[ignore_heap_size_of = "Rc has unclear ownership"]
|
||||
pub callback: Rc<PromiseJobCallback>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue