aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/mem.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2015-12-17 16:21:29 -0800
committerBobby Holley <bobbyholley@gmail.com>2015-12-29 11:50:03 -0800
commit47059d2d26f14f71e5b7212fa8bc01608eca11b5 (patch)
treed0693fb9987a7113323c7d6fb5502cb5621d8f15 /components/util/mem.rs
parent89ab368258eb827b0dcc8d6e6deecd3ed3c1de71 (diff)
downloadservo-47059d2d26f14f71e5b7212fa8bc01608eca11b5.tar.gz
servo-47059d2d26f14f71e5b7212fa8bc01608eca11b5.zip
Separate style+layout and layout-specific wrapper functionality.
This patch does a number of things, unfortunately all at once: * Hoists a large subset of the layout wrapper functionality into the style system. * Merges TElementAttributes into the newly-created TElement. * Reorganizes LayoutData by style vs layout, and removes LayoutDataShared. * Simplifies the API for borrowing style/layout data. There's still more to do to make the style system usable standalone, but this is a good start.
Diffstat (limited to 'components/util/mem.rs')
-rw-r--r--components/util/mem.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/util/mem.rs b/components/util/mem.rs
index 5b976d468e4..6c60186ff0e 100644
--- a/components/util/mem.rs
+++ b/components/util/mem.rs
@@ -35,6 +35,7 @@ use std::mem::{size_of, transmute};
use std::rc::Rc;
use std::result::Result;
use std::sync::Arc;
+use std::sync::atomic::{AtomicIsize, AtomicUsize};
use str::{DOMString, LengthOrPercentageOrAuto};
use string_cache::atom::Atom;
use string_cache::namespace::{QualName, Namespace};
@@ -418,6 +419,7 @@ impl HeapSizeOf for Value {
known_heap_size!(0, u8, u16, u32, u64, usize);
known_heap_size!(0, i8, i16, i32, i64, isize);
known_heap_size!(0, bool, f32, f64);
+known_heap_size!(0, AtomicIsize, AtomicUsize);
known_heap_size!(0, Rect<T>, Point2D<T>, Size2D<T>, Matrix2D<T>, SideOffsets2D<T>, Range<T>);
known_heap_size!(0, Length<T, U>, ScaleFactor<T, U, V>);