mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -44,7 +44,7 @@ const DEFAULT_DISABLED_GET_PARAMETER_NAMES: [GLenum; 1] = [
|
|||
];
|
||||
|
||||
/// WebGL features that are enabled/disabled by WebGL Extensions.
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
struct WebGLExtensionFeatures {
|
||||
gl_extensions: HashSet<String>,
|
||||
disabled_tex_types: HashSet<GLenum>,
|
||||
|
@ -73,7 +73,7 @@ impl Default for WebGLExtensionFeatures {
|
|||
|
||||
/// Handles the list of implemented, supported and enabled WebGL extensions.
|
||||
#[must_root]
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
pub struct WebGLExtensions {
|
||||
extensions: DOMRefCell<HashMap<String, Box<WebGLExtensionWrapper>>>,
|
||||
features: DOMRefCell<WebGLExtensionFeatures>,
|
||||
|
@ -223,7 +223,7 @@ impl WebGLExtensions {
|
|||
}
|
||||
|
||||
// Helper structs
|
||||
#[derive(JSTraceable, HeapSizeOf, PartialEq, Eq, Hash)]
|
||||
#[derive(Eq, Hash, HeapSizeOf, JSTraceable, PartialEq)]
|
||||
struct TexFormatType(u32, u32);
|
||||
|
||||
type WebGLQueryParameterFunc = Fn(*mut JSContext, &WebGLRenderingContext)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue