From 9904216d76ac8a44f8afd4733df792bad82a8aba Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 28 Mar 2015 22:46:16 +0100 Subject: [PATCH] Use u32 for generation numbers. --- components/layout/context.rs | 2 +- components/layout/layout_task.rs | 2 +- components/layout/traversal.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/layout/context.rs b/components/layout/context.rs index 6c87ef63742..abb510df0d2 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -86,7 +86,7 @@ pub struct SharedLayoutContext { /// Starts at zero, and increased by one every time a layout completes. /// This can be used to easily check for invalid stale data. - pub generation: uint, + pub generation: u32, } pub struct SharedLayoutContextWrapper(pub *const SharedLayoutContext); diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 3a511033934..ffaf9c5edcb 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -107,7 +107,7 @@ pub struct LayoutTaskData { /// Starts at zero, and increased by one every time a layout completes. /// This can be used to easily check for invalid stale data. - pub generation: uint, + pub generation: u32, /// A queued response for the union of the content boxes of a node. pub content_box_response: Rect, diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs index a206bf75b4a..4474cc684a6 100644 --- a/components/layout/traversal.rs +++ b/components/layout/traversal.rs @@ -28,7 +28,7 @@ use std::mem; /// Every time we do another layout, the old bloom filters are invalid. This is /// detected by ticking a generation number every layout. -type Generation = uint; +type Generation = u32; /// A pair of the bloom filter used for css selector matching, and the node to /// which it applies. This is used to efficiently do `Descendant` selector