aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-18 09:29:21 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-09-18 09:29:21 -0700
commit667f887f49902c4750b80b8be15ba1d4dc3dccdf (patch)
treebdd22f8ae268323a59cfa97377852cc538a6043e /components/layout/context.rs
parent1b251db7323dce3b7838709c7d2dfb685d8b24a9 (diff)
parent670ca9894e1ea433d9d487e39005601f12f435aa (diff)
downloadservo-667f887f49902c4750b80b8be15ba1d4dc3dccdf.tar.gz
servo-667f887f49902c4750b80b8be15ba1d4dc3dccdf.zip
Merge pull request #3397 from cgaebel/issue-3386
Fixes #3386.
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 936314dcb63..8792e99d2a6 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -79,6 +79,10 @@ pub struct SharedLayoutContext {
/// The dirty rectangle, used during display list building.
pub dirty: Rect<Au>,
+
+ /// 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 struct LayoutContext<'a> {