mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -13,7 +13,7 @@ use net_traits::request::RequestInit;
|
|||
use servo_url::ServoUrl;
|
||||
use std::thread;
|
||||
|
||||
#[derive(JSTraceable, PartialEq, Clone, Debug, HeapSizeOf)]
|
||||
#[derive(Clone, Debug, HeapSizeOf, JSTraceable, PartialEq)]
|
||||
pub enum LoadType {
|
||||
Image(ServoUrl),
|
||||
Script(ServoUrl),
|
||||
|
@ -39,7 +39,7 @@ impl LoadType {
|
|||
/// Canary value ensuring that manually added blocking loads (ie. ones that weren't
|
||||
/// created via DocumentLoader::fetch_async) are always removed by the time
|
||||
/// that the owner is destroyed.
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
#[must_root]
|
||||
pub struct LoadBlocker {
|
||||
/// The document whose load event is blocked by this object existing.
|
||||
|
@ -80,7 +80,7 @@ impl Drop for LoadBlocker {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
pub struct DocumentLoader {
|
||||
resource_threads: ResourceThreads,
|
||||
blocking_loads: Vec<LoadType>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue