aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-12-10 23:16:18 -0800
committerPatrick Walton <pcwalton@mimiga.net>2014-12-12 14:55:24 -0800
commit071d320728cc2a4976801bd7a955f8efa138b739 (patch)
tree9377550ef7cfa6f5ba137b1ea1e1566af6158199 /components/layout/flow.rs
parente74a57821f89aa637c4aa20e8757b2635c01578d (diff)
downloadservo-071d320728cc2a4976801bd7a955f8efa138b739.tar.gz
servo-071d320728cc2a4976801bd7a955f8efa138b739.zip
layout: Refactor inline layout a bit.
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index 536a2798e13..bfca9c6168c 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -288,6 +288,9 @@ pub trait Flow: fmt::Show + ToString + Sync {
/// Return the dimensions of the containing block generated by this flow for absolutely-
/// positioned descendants. For block flows, this is the padding box.
+ ///
+ /// NB: Do not change this `&self` to `&mut self` under any circumstances! It has security
+ /// implications because this can be called on parents concurrently from descendants!
fn generated_containing_block_rect(&self) -> LogicalRect<Au> {
panic!("generated_containing_block_position not yet implemented for this flow")
}