aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-09-16 23:41:34 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-09-16 23:41:34 -0400
commitd465abdb1c2162ca9eeb72f391ea4a721332500a (patch)
treec353291226b29d8156c840062c03d62a596fa325 /src/components/script/layout_interface.rs
parent37787d55d0008879fd776b012b5d7994cff99fe9 (diff)
downloadservo-d465abdb1c2162ca9eeb72f391ea4a721332500a.tar.gz
servo-d465abdb1c2162ca9eeb72f391ea4a721332500a.zip
Make all DOM manipulation wait until it's safe to do so (ie. all reflows for the page have completed). Fix a race where a newly-initiated reflow would be considered complete when receiving the completion notice for the previous reflow.
Diffstat (limited to 'src/components/script/layout_interface.rs')
-rw-r--r--src/components/script/layout_interface.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/script/layout_interface.rs b/src/components/script/layout_interface.rs
index 89336494959..47f9c1ac362 100644
--- a/src/components/script/layout_interface.rs
+++ b/src/components/script/layout_interface.rs
@@ -105,6 +105,8 @@ pub struct Reflow {
window_size: Size2D<uint>,
/// The channel that we send a notification to.
script_join_chan: Chan<()>,
+ /// Unique identifier
+ id: uint
}
/// Encapsulates a channel to the layout task.