auto merge of #5437 : Ms2ger/servo/int, r=jdm

This commit is contained in:
bors-servo 2015-03-29 03:49:01 -06:00
commit 7d0d851456
7 changed files with 12 additions and 16 deletions

View file

@ -72,9 +72,6 @@ pub struct FloatedBlockInfo {
/// box). /// box).
pub float_ceiling: Au, pub float_ceiling: Au,
/// Index into the fragment list for inline floats
pub index: Option<uint>,
/// Left or right? /// Left or right?
pub float_kind: FloatKind, pub float_kind: FloatKind,
} }
@ -84,7 +81,6 @@ impl FloatedBlockInfo {
FloatedBlockInfo { FloatedBlockInfo {
containing_inline_size: Au(0), containing_inline_size: Au(0),
float_ceiling: Au(0), float_ceiling: Au(0),
index: None,
float_kind: float_kind, float_kind: float_kind,
} }
} }

View file

@ -88,7 +88,7 @@ impl ConstructionResult {
(*self).clone() (*self).clone()
} }
pub fn debug_id(&self) -> uint { pub fn debug_id(&self) -> usize {
match self { match self {
&ConstructionResult::None => 0u, &ConstructionResult::None => 0u,
&ConstructionResult::ConstructionItem(_) => 0u, &ConstructionResult::ConstructionItem(_) => 0u,

View file

@ -86,7 +86,7 @@ pub struct SharedLayoutContext {
/// Starts at zero, and increased by one every time a layout completes. /// Starts at zero, and increased by one every time a layout completes.
/// This can be used to easily check for invalid stale data. /// This can be used to easily check for invalid stale data.
pub generation: uint, pub generation: u32,
} }
pub struct SharedLayoutContextWrapper(pub *const SharedLayoutContext); pub struct SharedLayoutContextWrapper(pub *const SharedLayoutContext);

View file

@ -991,9 +991,9 @@ impl BaseFlow {
&self.weak_ref_count &self.weak_ref_count
} }
pub fn debug_id(&self) -> uint { pub fn debug_id(&self) -> usize {
let p = self as *const _; let p = self as *const _;
p as uint p as usize
} }
/// Ensures that all display list items generated by this flow are within the flow's overflow /// Ensures that all display list items generated by this flow are within the flow's overflow

View file

@ -107,7 +107,7 @@ pub struct LayoutTaskData {
/// Starts at zero, and increased by one every time a layout completes. /// Starts at zero, and increased by one every time a layout completes.
/// This can be used to easily check for invalid stale data. /// 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. /// A queued response for the union of the content boxes of a node.
pub content_box_response: Rect<Au>, pub content_box_response: Rect<Au>,

View file

@ -28,7 +28,7 @@ use std::mem;
/// Every time we do another layout, the old bloom filters are invalid. This is /// Every time we do another layout, the old bloom filters are invalid. This is
/// detected by ticking a generation number every layout. /// 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 /// 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 /// which it applies. This is used to efficiently do `Descendant` selector

View file

@ -248,7 +248,7 @@ impl<'ln> LayoutNode<'ln> {
self.dump_indent(0); self.dump_indent(0);
} }
fn dump_indent(self, indent: uint) { fn dump_indent(self, indent: u32) {
let mut s = String::new(); let mut s = String::new();
for _ in range(0, indent) { for _ in range(0, indent) {
s.push_str(" "); s.push_str(" ");
@ -267,10 +267,10 @@ impl<'ln> LayoutNode<'ln> {
self.type_id(), self.has_changed(), self.is_dirty(), self.has_dirty_descendants()) self.type_id(), self.has_changed(), self.is_dirty(), self.has_dirty_descendants())
} }
pub fn flow_debug_id(self) -> uint { pub fn flow_debug_id(self) -> usize {
let layout_data_ref = self.borrow_layout_data(); let layout_data_ref = self.borrow_layout_data();
match *layout_data_ref { match *layout_data_ref {
None => 0u, None => 0,
Some(ref layout_data) => layout_data.data.flow_construction_result.debug_id() Some(ref layout_data) => layout_data.data.flow_construction_result.debug_id()
} }
} }
@ -806,7 +806,7 @@ impl<'ln> ThreadSafeLayoutNode<'ln> {
self.node.debug_id() self.node.debug_id()
} }
pub fn flow_debug_id(self) -> uint { pub fn flow_debug_id(self) -> usize {
self.node.flow_debug_id() self.node.flow_debug_id()
} }
@ -1135,11 +1135,11 @@ pub trait PostorderNodeMutTraversal {
/// Opaque type stored in type-unsafe work queues for parallel layout. /// Opaque type stored in type-unsafe work queues for parallel layout.
/// Must be transmutable to and from LayoutNode/ThreadSafeLayoutNode. /// Must be transmutable to and from LayoutNode/ThreadSafeLayoutNode.
pub type UnsafeLayoutNode = (uint, uint); pub type UnsafeLayoutNode = (usize, usize);
pub fn layout_node_to_unsafe_layout_node(node: &LayoutNode) -> UnsafeLayoutNode { pub fn layout_node_to_unsafe_layout_node(node: &LayoutNode) -> UnsafeLayoutNode {
unsafe { unsafe {
let ptr: uint = mem::transmute_copy(node); let ptr: usize = mem::transmute_copy(node);
(ptr, 0) (ptr, 0)
} }
} }