aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authorClément DAVID <c.david86@gmail.com>2017-08-23 14:10:08 +0200
committerClément DAVID <c.david86@gmail.com>2017-08-23 21:38:44 +0200
commitc5fe2351124c673d1dc4d59355a03654b4fcc541 (patch)
treebaa752c3c7847e85c0e50389400b45f7bf2fc390 /components/script/dom/htmlcollection.rs
parentab73f3d61d895289898821272f6af2665c9c645c (diff)
downloadservo-c5fe2351124c673d1dc4d59355a03654b4fcc541.tar.gz
servo-c5fe2351124c673d1dc4d59355a03654b4fcc541.zip
order derivable traits lists
Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r--components/script/dom/htmlcollection.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs
index b9c402b3003..aa8fe9cf383 100644
--- a/components/script/dom/htmlcollection.rs
+++ b/components/script/dom/htmlcollection.rs
@@ -26,7 +26,7 @@ pub trait CollectionFilter : JSTraceable {
// An optional u32, using maxint to represent None.
// It would be nicer just to use Option<u32> for this, but that would produce word
// alignment issues since Option<u32> uses 33 bits.
-#[derive(Clone, Copy, JSTraceable, HeapSizeOf)]
+#[derive(Clone, Copy, HeapSizeOf, JSTraceable)]
struct OptionU32 {
bits: u32,
}
@@ -119,7 +119,7 @@ impl HTMLCollection {
-> Root<HTMLCollection> {
// case 1
if qualified_name == local_name!("*") {
- #[derive(JSTraceable, HeapSizeOf)]
+ #[derive(HeapSizeOf, JSTraceable)]
struct AllFilter;
impl CollectionFilter for AllFilter {
fn filter(&self, _elem: &Element, _root: &Node) -> bool {
@@ -129,7 +129,7 @@ impl HTMLCollection {
return HTMLCollection::create(window, root, box AllFilter);
}
- #[derive(JSTraceable, HeapSizeOf)]
+ #[derive(HeapSizeOf, JSTraceable)]
struct HtmlDocumentFilter {
qualified_name: LocalName,
ascii_lower_qualified_name: LocalName,
@@ -169,7 +169,7 @@ impl HTMLCollection {
}
pub fn by_qual_tag_name(window: &Window, root: &Node, qname: QualName) -> Root<HTMLCollection> {
- #[derive(JSTraceable, HeapSizeOf)]
+ #[derive(HeapSizeOf, JSTraceable)]
struct TagNameNSFilter {
qname: QualName
}
@@ -193,7 +193,7 @@ impl HTMLCollection {
pub fn by_atomic_class_name(window: &Window, root: &Node, classes: Vec<Atom>)
-> Root<HTMLCollection> {
- #[derive(JSTraceable, HeapSizeOf)]
+ #[derive(HeapSizeOf, JSTraceable)]
struct ClassNameFilter {
classes: Vec<Atom>
}
@@ -212,7 +212,7 @@ impl HTMLCollection {
}
pub fn children(window: &Window, root: &Node) -> Root<HTMLCollection> {
- #[derive(JSTraceable, HeapSizeOf)]
+ #[derive(HeapSizeOf, JSTraceable)]
struct ElementChildFilter;
impl CollectionFilter for ElementChildFilter {
fn filter(&self, elem: &Element, root: &Node) -> bool {